Method Dispose
Dispose(Boolean)
Override this method and dispose any objects you own the lifetime of if disposing is true;
Declaration
protected abstract void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | True if managed objects should be disposed, if false, only unmanaged resources should be released. |
Dispose()
Disposes this object instance and all internally managed resources.
Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()
Remarks
Sets the IsDisposed property to true. Does not explicitly throw an exception if called multiple times, but makes no promises about behaviour of derived classes.