Class Disposable
Provides a mechanism for releasing both managed and unmanaged resources with focus on the former. Implements the IDisposable
Inheritance
Disposable
Implements
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public abstract class Disposable : IDisposable
Properties
| Improve this Doc View SourceDisposed
Gets a value indicating whether this Disposable object is disposed.
Declaration
public bool Disposed { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
| Improve this Doc View SourceDispose()
Releases all resources used by the Disposable object.
Declaration
public void Dispose()
Dispose(Boolean)
Releases the unmanaged resources used by the Disposable object and optionally releases the managed resources.
Declaration
protected void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
|
OnDisposeManagedResources()
Called when this object is being disposed by either Dispose() or Dispose(Boolean) having disposing
set to true
and Disposed is false
.
Declaration
protected abstract void OnDisposeManagedResources()
OnDisposeUnmanagedResources()
Called when this object is being disposed by either Dispose() or Dispose(Boolean) and Disposed is false
.
Declaration
protected virtual void OnDisposeUnmanagedResources()