Class DisposableDelegate
Class that executes a delegate on disposal.
Inheritance
System.Object
DisposableDelegate
Namespace: Cortex.Net.Core
Assembly: Cortex.Net.dll
Syntax
public sealed class DisposableDelegate : IDisposable
Constructors
| Improve this Doc View SourceDisposableDelegate(Action)
Initializes a new instance of the DisposableDelegate class.
Declaration
public DisposableDelegate(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action | The delegate to execute on disposal. |
Methods
| Improve this Doc View SourceDispose()
Executes the delegate that was encapsulated by this DisposableDelegate.
Declaration
public void Dispose()