Table of Contents

Disposable Class

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Disposable.cs

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 disposing set to true and Disposed is false.

OnDisposeUnmanagedResources()

Called when this object is being disposed by either Dispose() or Dispose(bool) and Disposed is false.

See Also