OrderablePartitioner<TSource>.GetPartitions(Int32) Metod

Definition

Partitioner den underliggande samlingen i det angivna antalet ordnade partitioner.

public:
 override System::Collections::Generic::IList<System::Collections::Generic::IEnumerator<TSource> ^> ^ GetPartitions(int partitionCount);
public override System.Collections.Generic.IList<System.Collections.Generic.IEnumerator<TSource>> GetPartitions(int partitionCount);
override this.GetPartitions : int -> System.Collections.Generic.IList<System.Collections.Generic.IEnumerator<'Source>>
Public Overrides Function GetPartitions (partitionCount As Integer) As IList(Of IEnumerator(Of TSource))

Parametrar

partitionCount
Int32

Antalet partitioner som ska skapas.

Returer

IList<IEnumerator<TSource>>

En lista som innehåller partitionCount uppräknare.

Kommentarer

Standardimplementeringen ger samma beteende som GetOrderablePartitions förutom att den returnerade uppsättningen partitioner inte tillhandahåller nycklarna för elementen.

Mer information finns i Anpassade partitionerare för PLINQ och TPL.

Gäller för

Se även