<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.4.0" />

ReactiveUI.Primitives.Advanced.DefaultIfEmptyWitness<T>

public sealed class DefaultIfEmptyWitness<T> : IObserver<T>, IDisposable
Observer for default-if-empty.
public DefaultIfEmptyWitness(IObserver<T> observer, T defaultValue)

Observer for default-if-empty.

public void Dispose()

public void OnCompleted()

public void OnError(Exception error)

public void OnNext(T value)

public void SetSubscription(IDisposable subscription)

Assigns the upstream subscription, disposing it if one is already held.