Class AutoDispose
Provides an IDisposable that runs an action when disposed, for a using scope.
public class AutoDispose : IDisposable
- Inheritance
-
AutoDispose
- Implements
- Inherited Members
- Extension Methods
Constructors
AutoDispose(Action)
Provides an IDisposable that runs an action when disposed, for a using scope.
public AutoDispose(Action disposeAction)
Parameters
disposeActionActionThe action.
Methods
Dispose()
Runs the action, at each call.
public void Dispose()