In This Article

DisposableObject Class

Provides a base class that implements the IDisposable interface. This class functions in accordance with the Disposable design pattern.

public abstract class DisposableObject : IDisposable
Inheritance:
object object
Derived:
ThreadedParseRequestDispatcher TagAggregatorBase<T> ObservableUndoableTextChangeStack
Implements:
IDisposable

Constructors

DisposableObject()

Initializes a new instance of the DisposableObject class.

protected DisposableObject()

Remarks

The default constructor initializes all fields to their default values.

Methods

Dispose()

Releases all resources used by the object.

public void Dispose()

Dispose(bool)

Releases the unmanaged resources used by the object and optionally releases the managed resources.

protected virtual void Dispose(bool disposing)
Parameter Type Description
disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

This method is called by the public Dispose method and the Finalize method. Dispose invokes this method with the disposing parameter set to true. Finalize invokes this method with disposing set to false.

~DisposableObject()

Allows an object to attempt to free resources and perform other cleanup operations before the object is reclaimed by garbage collection.

protected ~DisposableObject()

Inherited Members