Sequence Zip TFirst, TSecond, TResult  Method A Sandcastle Documented Class Library
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.

Namespace: Sequences
Assembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public static ISequence<TResult> Zip<TFirst, TSecond, TResult>(
	this ISequence<TFirst> first,
	IEnumerable<TSecond> second,
	Func<TFirst, TSecond, TResult> resultSelector
)

Parameters

first
Type: Sequences ISequence TFirst 
The first sequence to merge.
second
Type: System.Collections.Generic IEnumerable TSecond 
The second sequence to merge.
resultSelector
Type: System Func TFirst, TSecond, TResult 
A function that specifies how to merge the elements from the two sequences.
Type Parameters
TFirst
The type of the elements of first.
TSecond
The type of the elements of second.
TResult
The type of the elements of the result sequence.

Return Value

Type: ISequence TResult 
A sequence that contains merged elements of two input sequences.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISequence TFirst . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also