Partitioner 类

定义

提供针对数组、列表和可枚举项的常见分区策略。Provides common partitioning strategies for arrays, lists, and enumerables.

public ref class Partitioner abstract sealed
public static class Partitioner
type Partitioner = class
Public Class Partitioner
继承
Partitioner

注解

有关详细信息,请参阅 PLINQ 和 TPL 的自定义分区程序For more information, see Custom Partitioners for PLINQ and TPL.

方法

Create(Int32, Int32)

创建一个按用户指定的范围划分区块的分区程序。Creates a partitioner that chunks the user-specified range.

Create(Int32, Int32, Int32)

创建一个按用户指定的范围划分区块的分区程序。Creates a partitioner that chunks the user-specified range.

Create(Int64, Int64)

创建一个按用户指定的范围划分区块的分区程序。Creates a partitioner that chunks the user-specified range.

Create(Int64, Int64, Int64)

创建一个按用户指定的范围划分区块的分区程序。Creates a partitioner that chunks the user-specified range.

Create<TSource>(IEnumerable<TSource>)

IEnumerable<T> 实例创建一个可排序分区程序。Creates an orderable partitioner from a IEnumerable<T> instance.

Create<TSource>(IEnumerable<TSource>, EnumerablePartitionerOptions)

IEnumerable<T> 实例创建一个可排序分区程序。Creates an orderable partitioner from a IEnumerable<T> instance.

Create<TSource>(IList<TSource>, Boolean)

IList<T> 实例创建一个可排序分区程序。Creates an orderable partitioner from an IList<T> instance.

Create<TSource>(TSource[], Boolean)

Array 实例创建一个可排序分区程序。Creates an orderable partitioner from a Array instance.

适用于

另请参阅