Skip to content

,System.Linq.Expressions.Expression}})}

Qbservable.For(IQbservableProvider, IEnumerable, Expression>>) method

Defined in

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

Applies to

netstandard2.0

public static IQbservable<TResult> For<TSource, TResult>(this IQbservableProvider provider, IEnumerable<TSource> source, Expression<Func<TSource, IObservable<TResult>>> resultSelector)

Summary: Concatenates the observable sequences obtained by running the resultSelector for each element in the given enumerable source.

Type parameters

NameDescription
TSourceThe type of the elements in the enumerable source sequence.
TResultThe type of the elements in the observable result sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
sourceIEnumerableEnumerable source for which each element will be mapped onto an observable source that will be concatenated in the result sequence.
resultSelectorExpression>>Function to select an observable source for each element in the source.

Returns: IQbservable -- The observable sequence obtained by concatenating the sources returned by resultSelector for each element in the source.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or resultSelector is null.