Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Partitioner::Create<TSource> Method (IEnumerable<TSource>^)

.NET Framework (current version)
 

Creates an orderable partitioner from a IEnumerable<T> instance.

Namespace:   System.Collections.Concurrent
Assembly:  mscorlib (in mscorlib.dll)

public:
generic<typename TSource>
static OrderablePartitioner<TSource>^ Create(
	IEnumerable<TSource>^ source
)

Parameters

source
Type: System.Collections.Generic::IEnumerable<TSource>^

The enumerable to be partitioned.

Return Value

Type: System.Collections.Concurrent::OrderablePartitioner<TSource>^

An orderable partitioner based on the input array.

Type Parameters

TSource

Type of the elements in source enumerable.

The ordering used in the created partitioner is determined by the natural order of the elements as retrieved from the source enumerable. For more information and examples, see Custom Partitioners for PLINQ and TPL.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft