QbservableEx.WithLatestFrom(IQbservable, IObservable) method¶
Defined in
Type: QbservableEx
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public static IQbservable<(TFirst First, TSecond Second)> WithLatestFrom<TFirst, TSecond>(this IQbservable<TFirst> first, IObservable<TSecond> second)
Summary: Merges two observable sequences into one observable sequence by combining each element from the first source with the latest element from the second source, if any.
Type parameters
| Name | Description |
|---|---|
TFirst | The type of the elements in the first source sequence. |
TSecond | The type of the elements in the second source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
first | [IQbservable | First observable source. |
second | IObservable | Second observable source. |
Returns: IQbservable<(TFirst First, TSecond Second)> -- An observable sequence containing the result of combining each element of the first source with the latest element from the second source, if any, as a tuple value.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | first or second is null. |