Class DelegateDisposable
Provides a way to wrap the code responsible for freeing the resources as System.IDisposable.
Inheritance
System.Object
DelegateDisposable
Implements
System.IDisposable
Namespace: MAT.Atlas.Api.Core.System
Assembly: MAT.Atlas.Api.Core.dll
Syntax
public sealed class DelegateDisposable : Object, IDisposable
Constructors
DelegateDisposable(Action)
Initializes a new instance of the DelegateDisposable class.
Declaration
public DelegateDisposable(Action dispose)
Parameters
Type | Name | Description |
---|---|---|
System.Action | dispose | The dispose delegate. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown, when |
Methods
Dispose()
Calls the dispose delegate.
Declaration
public void Dispose()
Implements
System.IDisposable
See Also
System.IDisposable