ParallelEnumerable.Zip Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Unisce in parallelo due sequenze usando la funzione di predicato specificata.
Overload
| Nome | Descrizione |
|---|---|
| Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>) |
Obsoleti.
Questo overload Zip non deve mai essere chiamato. Questo metodo viene contrassegnato come obsoleto e genera NotSupportedException sempre quando viene richiamato. |
| Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, ParallelQuery<TSecond>, Func<TFirst,TSecond,TResult>) |
Unisce in parallelo due sequenze usando la funzione di predicato specificata. |
Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>)
- Origine:
- ParallelEnumerable.cs
- Origine:
- ParallelEnumerable.cs
- Origine:
- ParallelEnumerable.cs
- Origine:
- ParallelEnumerable.cs
- Origine:
- 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 Zip non deve mai essere chiamato. Questo metodo viene contrassegnato come obsoleto e genera NotSupportedException sempre 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 utilizzato.
- TSecond
Questo parametro di tipo non viene utilizzato.
- TResult
Questo parametro di tipo non viene utilizzato.
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.
Valori restituiti
Questo overload genera sempre un'eccezione 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>)
- Origine:
- ParallelEnumerable.cs
- Origine:
- ParallelEnumerable.cs
- Origine:
- ParallelEnumerable.cs
- Origine:
- ParallelEnumerable.cs
- Origine:
- ParallelEnumerable.cs
Unisce in parallelo due sequenze usando la funzione di 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 risultato da due elementi corrispondenti.
Valori restituiti
Sequenza con elementi di tipo TResult ottenuti eseguendo resultSelector pairwise su due sequenze. Se le lunghezze della sequenza non sono uguali, questo tronca alla lunghezza della sequenza più breve.
Eccezioni
first o second o resultSelector è un riferimento Null (Nothing in Visual Basic).
La query è stata annullata con il token passato tramite WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).
Durante la valutazione della query si sono verificate una o più eccezioni.