The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

Qbservable.CombineLatest<TFirst, TSecond, TResult>()

Qbservable.CombineLatest<TFirst, TSecond, TResult> Method

Merges two queryable observable sequences into one queryable observable sequence by using the selector function whenever one of the queryable observable sequences produces an element.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive.Providers (in System.Reactive.Providers.dll)


<ExtensionAttribute> _
Public Shared Function CombineLatest(Of TFirst, TSecond, TResult) ( _
    first As IQbservable(Of TFirst), _
    second As IObservable(Of TSecond), _
    resultSelector As Expression(Of Func(Of TFirst, TSecond, TResult)) _
) As IQbservable(Of TResult)
Dim first As IQbservable(Of TFirst)
Dim second As IObservable(Of TSecond)
Dim resultSelector As Expression(Of Func(Of TFirst, TSecond, TResult))
Dim returnValue As IQbservable(Of TResult)

returnValue = first.CombineLatest(second, _
public static IQbservable<TResult> CombineLatest<TFirst, TSecond, TResult>(
    this IQbservable<TFirst> first,
    IObservable<TSecond> second,
    Expression<Func<TFirst, TSecond, TResult>> resultSelector
generic<typename TFirst, typename TSecond, typename TResult>
static IQbservable<TResult>^ CombineLatest(
    IQbservable<TFirst>^ first, 
    IObservable<TSecond>^ second, 
    Expression<Func<TFirst, TSecond, TResult>^>^ resultSelector
static member CombineLatest : 
        first:IQbservable<'TFirst> * 
        second:IObservable<'TSecond> * 
        resultSelector:Expression<Func<'TFirst, 'TSecond, 'TResult>> -> IQbservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TFirst
    The first type.

  • TSecond
    The second type.

  • TResult
    The type of result.


Return Value

Type: System.Reactive.Linq.IQbservable<TResult>
A queryable observable sequence containing the result of combining elements of both sources using the specified result selector function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<TFirst>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also


Qbservable Class

System.Reactive.Linq Namespace