Disposable Class
Definition
Provides a mechanism for releasing both managed and unmanaged resources with focus on the former.
public abstract class Disposable : IDisposable
- Inheritance
-
Disposable
- Implements
- Derived
Properties
| Name | Description |
|---|---|
| Disposed | Gets a value indicating whether this Disposable object is disposed. |
Methods
| Name | Description |
|---|---|
| Dispose() | Releases all resources used by the Disposable object. |
| Dispose(bool) | Releases the unmanaged resources used by the Disposable object and optionally releases the managed resources. |
| OnDisposeManagedResources() | Called when this object is being disposed by either Dispose() or Dispose(bool) having |
| OnDisposeUnmanagedResources() | Called when this object is being disposed by either Dispose() or Dispose(bool) and Disposed is |