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

Creates an object that can partition the underlying collection into a variable number of partitions.

Syntax

public virtual IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions ()

Returns

An object that can create partitions over the underlying data source.

Remarks

The returned object implements the IEnumerable`1 interface. Calling IEnumerable`1.GetEnumerator on the object creates another partition over the sequence.

Each partition is represented as an enumerator over key-value pairs. The value in the pair is the element itself, and the key is an integer which determines the relative ordering of this element against other elements.

The OrderablePartitioner`1.GetOrderableDynamicPartitions method is only supported if the Partitioner`1.SupportsDynamicPartitions property returns true.

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