Qbservable.Zip<TFirst, TSecond, TResult> Method (IQbservable<TFirst>, IEnumerable<TSecond>, Expression<Func<TFirst, TSecond, TResult>>)

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

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Zip(Of TFirst, TSecond, TResult) ( _
    first As IQbservable(Of TFirst), _
    second As IEnumerable(Of TSecond), _
    resultSelector As Expression(Of Func(Of TFirst, TSecond, TResult)) _
) As IQbservable(Of TResult)
'Usage
Dim first As IQbservable(Of TFirst)
Dim second As IEnumerable(Of TSecond)
Dim resultSelector As Expression(Of Func(Of TFirst, TSecond, TResult))
Dim returnValue As IQbservable(Of TResult)

returnValue = first.Zip(second, resultSelector)
public static IQbservable<TResult> Zip<TFirst, TSecond, TResult>(
    this IQbservable<TFirst> first,
    IEnumerable<TSecond> second,
    Expression<Func<TFirst, TSecond, TResult>> resultSelector
)
[ExtensionAttribute]
public:
generic<typename TFirst, typename TSecond, typename TResult>
static IQbservable<TResult>^ Zip(
    IQbservable<TFirst>^ first, 
    IEnumerable<TSecond>^ second, 
    Expression<Func<TFirst, TSecond, TResult>^>^ resultSelector
)
static member Zip : 
        first:IQbservable<'TFirst> * 
        second:IEnumerable<'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.

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<TResult>
A queryable observable sequence containing the result of pairwise combining the elements of the first and second source 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

Reference

Qbservable Class

Zip Overload

System.Reactive.Linq Namespace