Class Util.BaseContext
A base implementation of the IDisposable interface.
public abstract class Util.BaseContext : IDisposable
- Inheritance
-
Util.BaseContext
- Implements
- Derived
- Inherited Members
Constructors
BaseContext()
protected BaseContext()
Methods
Dispose()
Calls the OnClose() method for this instance.
public void Dispose()
Remarks
OnClose() is only called once even if this method is called several times.
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
Parameters
disposingbooltrueto release both managed and unmanaged resources;falseto release only unmanaged resources.
~BaseContext()
On garbage collection calls Dispose() if it has not already been called.
protected ~BaseContext()
OnClose()
Called when the context is closed, i.e. is disposed or goes out of scope.
protected abstract void OnClose()