ParallelEnumerable.Cast<TResult>(ParallelQuery) Método
Definición
Convierte los elementos de ParallelQuery en el tipo especificado.Converts the elements of a ParallelQuery to the specified type.
public:
generic <typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TResult> ^ Cast(System::Linq::ParallelQuery ^ source);
public static System.Linq.ParallelQuery<TResult> Cast<TResult> (this System.Linq.ParallelQuery source);
static member Cast : System.Linq.ParallelQuery -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Cast(Of TResult) (source As ParallelQuery) As ParallelQuery(Of TResult)
Parámetros de tipo
- TResult
Tipo al que se convierten los elementos de source
.The type to convert the elements of source
to.
Parámetros
- source
- ParallelQuery
Secuencia que contiene los elementos que se van a convertir.The sequence that contains the elements to be converted.
Devoluciones
- ParallelQuery<TResult>
Secuencia que contiene cada elemento de la secuencia de salida convertido en el tipo especificado.A sequence that contains each element of the source sequence converted to the specified type.
Excepciones
source
es una referencia nula (nada en Visual Basic).source
is a null reference (Nothing in Visual Basic).
El tipo de la secuencia de origen no puede convertirse automáticamente en TResult
.The type of the source sequence could not be converted to TResult
.