DisposableAction Class
Definition
- Namespace
- Tyne
- Assembly
- Tyne.Core.dll
Executes an Action when disposed.
public sealed class DisposableAction : IDisposable
- Inheritance
-
DisposableAction
- Implements
Remarks
As with IDisposable, this implementation is not thread safe.
Constructors
DisposableAction(Action) | Creates a new instance of DisposableAction which will only call |
DisposableAction(Action, bool) | Creates a new instance of DisposableAction. |
Methods
Dispose() | Calls the disposal action. |