[]
Base class for a System.IDisposable class.
public abstract class DisposeBase : IDisposable
protected DisposeBase()
Gets a value indicating whether this instance is disposed.
public bool IsDisposed { get; }
true
if this instance is disposed; otherwise, false
.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Clean up any resources being used.
protected abstract void Dispose(bool disposing)
disposing
boolReleases unmanaged resources and performs other cleanup operations before the DisposeBase is reclaimed by garbage collection.
protected ~DisposeBase()
Occurs when this instance is fully disposed.
public event EventHandler<EventArgs> Disposed
Occurs when this instance is starting to be disposed.
public event EventHandler<EventArgs> Disposing