System.Collections.Concurrent.OrderablePartitioner<TSource>.GetPartitions Method

Partitions the underlying collection into the given number of ordered partitions.

Syntax

public override IList<IEnumerator<TSource>> GetPartitions (int partitionCount)

Parameters

partitionCount
The number of partitions to create.

Returns

A list containing partitionCount enumerators.

Remarks

The default implementation provides the same behavior as OrderablePartitioner`1.GetOrderablePartitions(int) except that the returned set of partitions does not provide the keys for the elements.

For more information, see Custom Partitioners for PLINQ and TPL.

Requirements

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