Class DisposableObject
Represents disposable object.
public class DisposableObject : IDisposable
- Inheritance
-
DisposableObject
- Implements
- Derived
- Inherited Members
Constructors
DisposableObject()
public DisposableObject()
Properties
Disposed
Gets a value indicating whether this instance is disposed.
public bool Disposed { get; }
Property Value
- bool
true
if disposed; otherwise,false
.
Methods
Dispose()
Disposes the current instance.
public void Dispose()
~DisposableObject()
protected ~DisposableObject()
ReleaseManagedResources()
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
protected virtual void ReleaseManagedResources()
ReleaseUnmanagedResources()
Releases the unmanaged resources. Make sure no managed resources are released here, since they may have been already released.
protected virtual void ReleaseUnmanagedResources()
VerifyNotDisposed()
Verifies that the current instance is not disposed.
protected void VerifyNotDisposed()