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

ReactiveUI.Primitives.Disposables.SingleReplaceableDisposable

A disposable slot whose inner disposable can be replaced, disposing the previous one.
public bool IsDisposed { get; }

Gets a value indicating whether this instance is disposed.

Initializes a new instance of the SingleReplaceableDisposable class.

Initializes a new instance of the SingleReplaceableDisposable class.

Initializes a new instance of the SingleReplaceableDisposable class.

public SingleReplaceableDisposable(IDisposable disposable, Action action)

Initializes a new instance of the SingleReplaceableDisposable class.

public void Create(IDisposable disposable)

Creates the specified disposable.

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.