ParallelEnumerable.Range(Int32, Int32) 方法

定义

在指定范围内生成整数的并行序列。

public:
 static System::Linq::ParallelQuery<int> ^ Range(int start, int count);
public static System.Linq.ParallelQuery<int> Range(int start, int count);
static member Range : int * int -> System.Linq.ParallelQuery<int>
Public Function Range (start As Integer, count As Integer) As ParallelQuery(Of Integer)

参数

start
Int32

序列中第一个整数的值。

count
Int32

要生成的顺序整数数。

返回

C# 或 IEnumerable(Of Int32)中的 IEnumerableInt32,其中包含一系列连续整数。

例外

count 小于 0 -or- start + count - 1 大于 Int32.MaxValue

适用于

另请参阅