Class Disposable
Base class that simplifies the implementation of the IDisposable interface.
Inherited Members
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.dll
Syntax
public abstract class Disposable : IDisposableEx, IDisposable
Remarks
If the class to implement contains asynchronous disposal actions, use the AsyncDisposable class as the base class.
Properties
| Edit this page View SourceIsDisposed
Gets a value indicating whether this object has been disposed.
Declaration
public bool IsDisposed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceDispose()
Releases the resources used by this instance.
Declaration
public void Dispose()
Dispose(bool)
Releases the resources used by this instance.
Declaration
protected void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Indicates whether managed resources should be released. |
~Disposable()
Destroys this instance of the Disposable class.
Declaration
protected ~Disposable()
OnDispose()
Performs cleanup operations for disposable managed objects for this instance.
Declaration
protected abstract void OnDispose()
OnFinalize()
Performs cleanup operations for unmanaged objects.
Declaration
protected virtual void OnFinalize()