,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
| Name | Description |
|---|---|
TSource | The type of the elements in the enumerable source sequence. |
TResult | The type of the elements in the observable result sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
source | IEnumerable | Enumerable source for which each element will be mapped onto an observable source that will be concatenated in the result sequence. |
resultSelector | Expression | Function to select an observable source for each element in the source. |
Returns: IQbservableresultSelector for each element in the source.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source or resultSelector is null. |