The DisposableObject type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DisposableObject |
Initializes a new instance of the DisposableObject class.
|
Methods
Name | Description | |
---|---|---|
Dispose |
Releases the underlying wrapped object explicitly.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnDispose |
The method is called on the Dispose()()()() method call.
Derived classes should override the method to perform custom disposing.
| |
ThrowIfDisposed |
Throws the ObjectDisposedException exception if
the underlying object has been disposed.
| |
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
IsDisposed |
Gets a value indicating whether the object has been disposed of.
| |
UnderlyingObject |
Gets the underlying wrapped object.
|