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

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

Syntax

public virtual IEnumerable<TSource> GetDynamicPartitions ()

Returns

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

Remarks

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

The Partitioner`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