ParallelEnumerable.Zip Metodo

Definizione

Unisce in parallelo due sequenze tramite la funzione predicato specificata.

Overload

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

Questo overload di Zip non dovrebbe mai essere chiamato. Questo metodo è contrassegnato come obsoleto e genera sempre NotSupportedException quando viene richiamato.

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

Unisce in parallelo due sequenze tramite la funzione predicato specificata.

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

Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

Attenzione

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>.

Questo overload di Zip non dovrebbe mai essere chiamato. Questo metodo è contrassegnato come obsoleto e genera sempre NotSupportedException quando viene richiamato.

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)

Parametri di tipo

TFirst

Questo parametro di tipo non viene usato.

TSecond

Questo parametro di tipo non viene usato.

TResult

Questo parametro di tipo non viene usato.

Parametri

first
ParallelQuery<TFirst>

Questo parametro non viene usato.

second
IEnumerable<TSecond>

Questo parametro non viene usato.

resultSelector
Func<TFirst,TSecond,TResult>

Questo parametro non viene usato.

Restituisce

ParallelQuery<TResult>

Questo overload genera sempre NotSupportedException.

Attributi

Eccezioni

Eccezione che si verifica quando viene chiamato questo metodo.

Commenti

Questo overload esiste per impedire l'utilizzo di Zip con un'origine dati sinistra di tipo e un'origine dati destra di tipo ParallelQuery<TSource>IEnumerable<T>. In caso contrario, l'operatore Zip sembra essere associato all'implementazione parallela, ma in realtà si associa all'implementazione sequenziale.

Vedi anche

Si applica a

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

Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

Unisce in parallelo due sequenze tramite la funzione predicato specificata.

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)

Parametri di tipo

TFirst

Tipo degli elementi della prima sequenza.

TSecond

Tipo degli elementi della seconda sequenza.

TResult

Tipo degli elementi restituiti.

Parametri

first
ParallelQuery<TFirst>

Prima sequenza da comprimere.

second
ParallelQuery<TSecond>

Seconda sequenza da comprimere.

resultSelector
Func<TFirst,TSecond,TResult>

Funzione per creare un elemento di risultato da due elementi corrispondenti.

Restituisce

ParallelQuery<TResult>

Sequenza che contiene elementi di tipo TResult ottenuti eseguendo un pairwise resultSelector su due sequenze. Se le sequenze hanno lunghezze diverse, la sequenza più lunga viene troncata in base alla lunghezza della sequenza più corta.

Eccezioni

first o second o resultSelector è un riferimento Null (Nothing in Visual Basic).

Una o più eccezioni si sono verificate durante la valutazione della query.

Si applica a