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

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

Syntax

public override IEnumerable<TSource> GetDynamicPartitions ()

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.

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

The OrderablePartitioner`1.GetDynamicPartitions 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