<PackageReference Include="ReactiveUI.Disposables" Version="7.4.0" />

ReactiveUI.Primitives.Disposables.SingleDisposable

Single-assignment disposable slot.
public bool IsDisposed { get; }

Gets a value indicating whether this instance is disposed.

Initializes a new instance of the SingleDisposable class.

public SingleDisposable(Action action)

Initializes a new instance of the SingleDisposable class.

public SingleDisposable(IDisposable disposable)

Initializes a new instance of the SingleDisposable class.

public SingleDisposable(IDisposable disposable, Action action)

Initializes a new instance of the SingleDisposable class.

public void Create(IDisposable disposable)

Assigns the disposable held by this slot.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

protected virtual void Dispose(bool disposing)

Releases unmanaged and - optionally - managed resources.