The DisposableObject type exposes the following members.

Constructors

  NameDescription
Public methodDisposableObject
Initializes a new instance of the DisposableObject class.

Methods

  NameDescription
Public methodDispose
Releases the underlying wrapped object explicitly.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDispose
The method is called on the Dispose()()()() method call. Derived classes should override the method to perform custom disposing.
Protected methodThrowIfDisposed
Throws the ObjectDisposedException exception if the underlying object has been disposed.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyIsDisposed
Gets a value indicating whether the object has been disposed of.
Public propertyUnderlyingObject
Gets the underlying wrapped object.

See Also