Observable.CombineLatest<TLeft, TRight, TResult> Method

March 22, 2012

Merges two observable sequences into one observable sequence by using the selector function whenever one of the observable sequences has a new value.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public static IObservable<TResult> CombineLatest<TLeft, TRight, TResult>(
	this IObservable<TLeft> leftSource,
	IObservable<TRight> rightSource,
	Func<TLeft, TRight, TResult> selector
)

Type Parameters

TLeft
TRight
TResult

Parameters

leftSource
Type: System.IObservable<TLeft>
rightSource
Type: System.IObservable<TRight>
selector
Type: System.Func<TLeft, TRight, TResult>

Return Value

Type: System.IObservable<TResult>
Returns IObservable<T>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<TLeft>. When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: