The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ParallelEnumerable::Zip<TFirst, TSecond, TResult> Method (ParallelQuery<TFirst>^, ParallelQuery<TSecond>^, Func<TFirst, TSecond, TResult>^)
.NET Framework (current version)
Merges in parallel two sequences by using the specified predicate function.
Assembly: System.Core (in System.Core.dll)
public: generic<typename TFirst, typename TSecond, typename TResult> [ExtensionAttribute] static ParallelQuery<TResult>^ Zip( ParallelQuery<TFirst>^ first, ParallelQuery<TSecond>^ second, Func<TFirst, TSecond, TResult>^ resultSelector )
Parameters
- first
-
Type:
System.Linq::ParallelQuery<TFirst>^
The first sequence to zip.
- second
-
Type:
System.Linq::ParallelQuery<TSecond>^
The second sequence to zip.
- resultSelector
-
Type:
System::Func<TFirst, TSecond, TResult>^
A function to create a result element from two matching elements.
Return Value
Type: System.Linq::ParallelQuery<TResult>^A sequence that has elements of type TResult that are obtained by performing resultSelector pairwise on two sequences. If the sequence lengths are unequal, this truncates to the length of the shorter sequence.
Type Parameters
- TFirst
The type of the elements of the first sequence.
- TSecond
The type of the elements of the second sequence.
- TResult
The type of the return elements.
| Exception | Condition |
|---|---|
| ArgumentNullException | first or second or resultSelector is a null reference (Nothing in Visual Basic). |
| OperationCanceledException | The query was canceled with the token passed in through WithCancellation. |
| AggregateException | One or more exceptions occurred during the evaluation of the query. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: