OrderablePartitioner<TSource>.GetPartitions(Int32) Metoda

Definice

Rozdělí podkladovou kolekci na daný počet uspořádaných oddílů.

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))

Parametry

partitionCount
Int32

Počet oddílů, které se mají vytvořit.

Návraty

IList<IEnumerator<TSource>>

Seznam obsahující partitionCount enumerátory.

Poznámky

Výchozí implementace poskytuje stejné chování jako GetOrderablePartitions s tím rozdílem, že vrácená sada oddílů neposkytuje klíče pro prvky.

Další informace najdete v tématu Vlastní dělicí nástroje pro PLINQ a TPL.

Platí pro

Viz také