Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ParallelEnumerable.Cast<TResult>(ParallelQuery) Method
Definition
- Namespace:
- System.Linq
- Assemblies:
- System.Core.dll, System.Linq.Parallel.dll
- Assemblies:
- netstandard.dll, System.Linq.Parallel.dll
- Assembly:
- System.Linq.Parallel.dll
- Assembly:
- System.Core.dll
- Assembly:
- netstandard.dll
- Source:
- ParallelEnumerable.cs
- Source:
- ParallelEnumerable.cs
- Source:
- ParallelEnumerable.cs
- Source:
- ParallelEnumerable.cs
- Source:
- ParallelEnumerable.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Type Parameters
- TResult
The type to convert the elements of source to.
Parameters
- source
- ParallelQuery
The sequence that contains the elements to be converted.
Returns
A sequence that contains each element of the source sequence converted to the specified type.
Exceptions
source is a null reference (Nothing in Visual Basic).
The type of the source sequence could not be converted to TResult.
Applies to
See also
Feedback
Was this page helpful?
