,System.Collections.Generic.IEnumerable{System.IObservable{System.Object}}})} }})}
ObservableEx.Create(Func, IEnumerable>>) method¶
Defined in
Type: ObservableEx
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static IObservable<TResult> Create<TResult>(Func<IObserver<TResult>, IEnumerable<IObservable<object>>> iteratorMethod) - 2.
public static IObservable<Unit> Create(Func<IEnumerable<IObservable<object>>> iteratorMethod)
1. Overload¶
Attributes: [Experimental]
public static IObservable<TResult> Create<TResult>(Func<IObserver<TResult>, IEnumerable<IObservable<object>>> iteratorMethod)
Summary: Subscribes to each observable sequence returned by the iteratorMethod in sequence and returns the observable sequence of values sent to the observer given to the iteratorMethod.
Type parameters
| Name | Description |
|---|---|
TResult | The type of the elements in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
iteratorMethod | Func | Iterator method that produces elements in the resulting sequence by calling the given observer. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | iteratorMethod is null. |
2. Overload¶
Attributes: [Experimental]
public static IObservable<Unit> Create(Func<IEnumerable<IObservable<object>>> iteratorMethod)
Summary: Subscribes to each observable sequence returned by the iteratorMethod in sequence and produces a Unit value on the resulting sequence for each step of the iteration.
Parameters
| Name | Type | Description |
|---|---|---|
iteratorMethod | Func | Iterator method that drives the resulting observable sequence. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | iteratorMethod is null. |