38 if (Interlocked.Exchange(ref
disposeRan, 1) != 0)
Runs a given disposeAction on Dispose.
readonly Action disposeAction
The Action to run on Dispose.
volatile int disposeRan
An int representation of a bool indicating if Dispose has ran.
virtual void DisposeImpl()
Implementation of Dispose run after reentrancy check.
DisposeInvoker(Action disposeAction)
Initializes a new instance of the DisposeInvoker class.
bool IsDisposed
If Dispose was called.