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

ReactiveUI.Primitives.Advanced.FromEventConversionSignal<TEventHandler, TCallback, TResult>

public sealed class FromEventConversionSignal<TEventHandler, TCallback, TResult> : IObservable<TResult> where TEventHandler : Delegate
Bridges an event whose handler is built by a caller-supplied conversion, so the handler can do synchronous work inside the event before the notification is published downstream. Supplying the conversion removes the need to derive a delegate reflectively, keeping the bridge trim- and AOT-safe.
namespace ReactiveUI.Primitives.Advanced { public sealed class FromEventConversionSignal<[Nullable(0)] TEventHandler, [Nullable(2)] TCallback, [Nullable(2)] TResult> : IObservable<TResult> where TEventHandler : Delegate { public FromEventConversionSignal(Func<TCallback, TEventHandler> conversion, Action<TEventHandler> addHandler, Action<TEventHandler> removeHandler, Func<IObserver<TResult>, TCallback> callback, ISequencer scheduler); public IDisposable Subscribe(IObserver<TResult> observer); } }