Class DisposeAction
This class can be used to provide an action when Dispose method is called.
public class DisposeAction : IDisposable
- Inheritance
-
DisposeAction
- Implements
- Inherited Members
- Extension Methods
Constructors
DisposeAction(Action)
Creates a new DisposeAction object.
public DisposeAction(Action action)
Parameters
action
ActionAction to be executed when this object is disposed.
Methods
Dispose()
public void Dispose()