Skip to content

,System.Func{--0,--1})}

Observable.Then(IObservable, Func) method

Defined in

Type: Observable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

public static Plan<TResult> Then<TSource, TResult>(this IObservable<TSource> source, Func<TSource, TResult> selector)

Summary: Matches when the observable sequence has an available element and projects the element by invoking the selector function.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the elements in the result sequence, returned by the selector function.

Parameters

NameTypeDescription
sourceIObservableObservable sequence to apply the selector on.
selectorFuncSelector that will be invoked for elements in the source sequence.

Returns: Plan -- Plan that produces the projected results, to be fed (with other plans) to the When operator.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.