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

ReactiveUI.Primitives.Disposables.OnceDisposable

public sealed class OnceDisposable : IsDisposed, IDisposable
Holds a disposable that can be assigned once.
public IDisposable Disposable { get; set; }

Gets or sets the inner disposable, throwing on repeated assignment.

public bool IsAssigned { get; }

Gets a value indicating whether a disposable has been assigned.

public bool IsDisposed { get; }

Gets a value indicating whether this instance has been disposed.

public OnceDisposable()

public void Dispose()