<PackageReference Include="ReactiveUI.Primitives" Version="10.2.0" />

ReactiveUI.Primitives.Advanced.ChooseWitness<TIn, TOut>

public sealed class ChooseWitness<TIn, TOut> : IObserver<TIn>, IDisposable
Applies the chooser to each value and forwards only the chosen ones.
namespace ReactiveUI.Primitives.Advanced { public sealed class ChooseWitness<[System.Runtime.CompilerServices.Nullable(2)] TIn, [System.Runtime.CompilerServices.Nullable(2)] TOut> : IObserver<TIn>, IDisposable { public ChooseWitness(IObserver<TOut> downstream, Func<TIn, (bool HasValue, TOut Value)> chooser); public void Dispose(); public void SetSubscription(IDisposable subscription); public void OnNext(TIn value); public void OnError(Exception error); public void OnCompleted(); } }