,System.Func{--0,System.IObservable{--1}},System.Func{--1,System.IObservable{--2}})}
ReactiveExtensions.SelectManyThen(IObservable, Func>, Func>) method¶
Defined in
Type: ReactiveExtensions
Namespace: ReactiveUI.Extensions
Assembly: ReactiveUI.Extensions.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
public static IObservable<TResult> SelectManyThen<TSource, TMid, TResult>(this IObservable<TSource> source, Func<TSource, IObservable<TMid>> first, Func<TMid, IObservable<TResult>> second)
Summary:
Chains two one-shot SelectMany projections into a single operator.
Replaces .SelectMany(a).SelectMany(b) (2 operator allocations) with 1.
Type parameters
| Name | Description |
|---|---|
TSource | The source element type. |
TMid | The intermediate element type. |
TResult | The final result type. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source observable. |
first | Func | First projection: source → intermediate observable. |
second | Func | Second projection: intermediate → result observable. |
Returns: IObservable