Create(TSource) Method (IEnumerable(TSource), EnumerablePartitionerOptions)

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

.NET Framework 4.6 and 4.5

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

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

public static OrderablePartitioner<TSource> Create<TSource>(
	IEnumerable<TSource> source,
	EnumerablePartitionerOptions partitionerOptions


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

The enumerable to be partitioned.

Type: System.Collections.Concurrent.EnumerablePartitionerOptions

Options to control the buffering behavior of the partitioner.

Return Value

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

An orderable partitioner based on the input array.

Type Parameters


Type of the elements in source enumerable.

Exception Condition

The partitionerOptions argument specifies an invalid value for EnumerablePartitionerOptions.

The ordering used in the created partitioner is determined by the natural order of the elements as retrieved from the source enumerable.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft