BooleanDisposable
Represents a disposable resource that can be checked for disposal status.
Gets a value that indicates whether the object is disposed.
public BooleanDisposable()
Initializes a new instance of the BooleanDisposable class.
Sets the status to disposed, which can be observer through the IsDisposed property.