ReactiveUI.Primitives.Disposables.SingleDisposable
A disposable slot that accepts one assignment: a second assignment throws, and a value assigned after disposal is disposed immediately.
Gets a value indicating whether this instance is disposed.
public SingleDisposable()
Initializes a new instance of the SingleDisposable class.
Initializes a new instance of the SingleDisposable class.
Initializes a new instance of the SingleDisposable class.
Initializes a new instance of the SingleDisposable class.
Assigns the disposable held by this slot.
Runs the constructor-supplied action, then disposes the assigned value and blocks further assignments; repeated calls have no further effect.