Dispose(bool disposing) executes in two distinct scenarios.
If disposing equals true, the method has been called directly
or indirectly by a user's code. Managed and unmanaged resources
can be disposed.
If disposing equals false, the method has been called by the
runtime from inside the finalizer and you should not reference
other objects. Only unmanaged resources can be disposed.
Namespace:
Rebex
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Protected Overrides Sub Dispose ( _ disposing As Boolean _ ) |
C# |
---|
protected override void Dispose( bool disposing ) |
Parameters
- disposing
- Type: System..::..Boolean
If true, is called by IDisposable.Dispose. Otherwise it is called by finalizer.