Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Partitioner.Create<TSource> Method (IEnumerable<TSource>)

.NET Framework 4.6 and 4.5

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

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

public static OrderablePartitioner<TSource> Create<TSource>(
	IEnumerable<TSource> source

Type Parameters


Type of the elements in source enumerable.


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.

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft