Nito.Disposables.IReferenceCountedDisposable<T>
An instance that represents a reference count. All members are threadsafe.
Whether this instance is disposed (finished disposing).
Whether this instance is currently disposing or has been disposed.
Whether this instance is currently disposing, but not finished yet.
Gets the target object. Throws ObjectDisposedException if this instance is disposed.
Returns a new reference to this reference counted disposable, incrementing the reference counter. Throws ObjectDisposedException if this instance is disposed.
Adds a weak reference to this reference counted disposable. Throws ObjectDisposedException if this instance is disposed.