A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.linq.parallelenumerable.asparallel below:

ParallelEnumerable.AsParallel Method (System.Linq) | Microsoft Learn

ParallelEnumerable.AsParallel Method Definition

Enables parallelization of a query.

Overloads

This method binds the query to PLINQ. For more information, see Parallel LINQ (PLINQ).

AsParallel(IEnumerable)
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

Enables parallelization of a query.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery ^ AsParallel(System::Collections::IEnumerable ^ source);
public static System.Linq.ParallelQuery AsParallel(this System.Collections.IEnumerable source);
static member AsParallel : System.Collections.IEnumerable -> System.Linq.ParallelQuery
<Extension()>
Public Function AsParallel (source As IEnumerable) As ParallelQuery
Parameters Returns

The source as a ParallelQuery to bind to ParallelEnumerable extension methods.

Exceptions

source is a null reference (Nothing in Visual Basic).

Remarks

The Cast operator can be used to convert a ParallelQuery to a ParallelQuery(T).

See also AsParallel<TSource>(Partitioner<TSource>)
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

Enables parallelization of a query, as sourced by a custom partitioner that is responsible for splitting the input sequence into partitions.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ AsParallel(System::Collections::Concurrent::Partitioner<TSource> ^ source);
public static System.Linq.ParallelQuery<TSource> AsParallel<TSource>(this System.Collections.Concurrent.Partitioner<TSource> source);
static member AsParallel : System.Collections.Concurrent.Partitioner<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function AsParallel(Of TSource) (source As Partitioner(Of TSource)) As ParallelQuery(Of TSource)
Type Parameters
TSource

The type of elements of source.

Parameters Returns

The source as a ParallelQuery to bind to ParallelEnumerable extension methods.

Exceptions

source is a null reference (Nothing in Visual Basic).

Remarks

The source partitioner's GetOrderedPartitions method is used when ordering is enabled, whereas the partitioner's GetPartitions is used if ordering is not enabled (the default). The source partitioner's GetDynamicPartitions and GetDynamicOrderedPartitions are not used. For more information and examples, see Custom Partitioners for PLINQ and TPL.

See also AsParallel<TSource>(IEnumerable<TSource>)
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

Enables parallelization of a query.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ AsParallel(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Linq.ParallelQuery<TSource> AsParallel<TSource>(this System.Collections.Generic.IEnumerable<TSource> source);
static member AsParallel : seq<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function AsParallel(Of TSource) (source As IEnumerable(Of TSource)) As ParallelQuery(Of TSource)
Type Parameters
TSource

The type of elements of source.

Parameters Returns

The source as a ParallelQuery<TSource> to bind to ParallelEnumerable extension methods.

Exceptions

source is a null reference (Nothing in Visual Basic).

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4