SerialDisposable
Represents a disposable resource whose underlying disposable resource can be replaced by another disposable resource, causing automatic disposal of the previous underlying disposable resource.
Gets or sets the underlying disposable.
Gets a value that indicates whether the object is disposed.
public SerialDisposable()
Initializes a new instance of the SerialDisposable class.
Disposes the underlying disposable as well as all future replacements.