Observable.Zip<TLeft, TRight, TResult> Method (IObservable<TLeft>, IEnumerable<TRight>, Func<TLeft, TRight, TResult>)

March 22, 2012

Merges an observable sequence and an enumerable sequence into one observable sequence by using the selector function.

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

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

Type Parameters

TLeft
TRight
TResult

Parameters

leftSource
Type: System.IObservable<TLeft>
rightSource
Type: System.Collections.Generic.IEnumerable<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: