ParallelEnumerable.Zip メソッド

定義

指定した述語関数を使用して、2 つのシーケンスを並列でマージします。

オーバーロード

名前 説明
Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>)
古い.

この Zip オーバーロードは呼び出さないでください。 このメソッドは古い形式としてマークされ、呼び出されると常に NotSupportedException がスローされます。

Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, ParallelQuery<TSecond>, Func<TFirst,TSecond,TResult>)

指定した述語関数を使用して、2 つのシーケンスを並列でマージします。

Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>)

ソース:
ParallelEnumerable.cs
ソース:
ParallelEnumerable.cs
ソース:
ParallelEnumerable.cs
ソース:
ParallelEnumerable.cs
ソース:
ParallelEnumerable.cs

注意事項

The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.

この Zip オーバーロードは呼び出さないでください。 このメソッドは古い形式としてマークされ、呼び出されると常に NotSupportedException がスローされます。

public:
generic <typename TFirst, typename TSecond, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TResult> ^ Zip(System::Linq::ParallelQuery<TFirst> ^ first, System::Collections::Generic::IEnumerable<TSecond> ^ second, Func<TFirst, TSecond, TResult> ^ resultSelector);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TResult> Zip<TFirst,TSecond,TResult>(this System.Linq.ParallelQuery<TFirst> first, System.Collections.Generic.IEnumerable<TSecond> second, Func<TFirst,TSecond,TResult> resultSelector);
[<System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")>]
static member Zip : System.Linq.ParallelQuery<'First> * seq<'Second> * Func<'First, 'Second, 'Result> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Zip(Of TFirst, TSecond, TResult) (first As ParallelQuery(Of TFirst), second As IEnumerable(Of TSecond), resultSelector As Func(Of TFirst, TSecond, TResult)) As ParallelQuery(Of TResult)

型パラメーター

TFirst

この型パラメーターは使用されません。

TSecond

この型パラメーターは使用されません。

TResult

この型パラメーターは使用されません。

パラメーター

first
ParallelQuery<TFirst>

このパラメーターは使用されません。

second
IEnumerable<TSecond>

このパラメーターは使用されません。

resultSelector
Func<TFirst,TSecond,TResult>

このパラメーターは使用されません。

返品

ParallelQuery<TResult>

このオーバーロードは常に NotSupportedExceptionをスローします。

属性

例外

このメソッドが呼び出されたときに発生する例外。

注釈

このオーバーロードは、 ParallelQuery<TSource> 型の左側のデータ ソースと、 IEnumerable<T>型の適切なデータ ソースで Zip の使用を禁止するために存在します。 それ以外の場合、Zip 演算子は並列実装にバインドされているように見えますが、実際には順次実装にバインドされます。

こちらもご覧ください

適用対象

Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, ParallelQuery<TSecond>, Func<TFirst,TSecond,TResult>)

ソース:
ParallelEnumerable.cs
ソース:
ParallelEnumerable.cs
ソース:
ParallelEnumerable.cs
ソース:
ParallelEnumerable.cs
ソース:
ParallelEnumerable.cs

指定した述語関数を使用して、2 つのシーケンスを並列でマージします。

public:
generic <typename TFirst, typename TSecond, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TResult> ^ Zip(System::Linq::ParallelQuery<TFirst> ^ first, System::Linq::ParallelQuery<TSecond> ^ second, Func<TFirst, TSecond, TResult> ^ resultSelector);
public static System.Linq.ParallelQuery<TResult> Zip<TFirst,TSecond,TResult>(this System.Linq.ParallelQuery<TFirst> first, System.Linq.ParallelQuery<TSecond> second, Func<TFirst,TSecond,TResult> resultSelector);
static member Zip : System.Linq.ParallelQuery<'First> * System.Linq.ParallelQuery<'Second> * Func<'First, 'Second, 'Result> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Zip(Of TFirst, TSecond, TResult) (first As ParallelQuery(Of TFirst), second As ParallelQuery(Of TSecond), resultSelector As Func(Of TFirst, TSecond, TResult)) As ParallelQuery(Of TResult)

型パラメーター

TFirst

最初のシーケンスの要素の型。

TSecond

2 番目のシーケンスの要素の型。

TResult

戻り値の要素の型。

パラメーター

first
ParallelQuery<TFirst>

zip する最初のシーケンス。

second
ParallelQuery<TSecond>

zip する 2 番目のシーケンス。

resultSelector
Func<TFirst,TSecond,TResult>

一致する 2 つの要素から結果要素を作成する関数。

返品

ParallelQuery<TResult>

2 つのシーケンスでペアワイズresultSelector実行することによって取得されるTResult型の要素を持つシーケンス。 シーケンスの長さが等しくない場合は、短いシーケンスの長さに切り捨てられます。

例外

first または second または resultSelector は null 参照です (Visual Basicでは Nothing)。

クエリは、 WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken)を介して渡されたトークンで取り消されました。

クエリの評価中に 1 つ以上の例外が発生しました。

適用対象