AsyncEnumerable.Range(Int32, Int32) Метод

Определение

Создает последовательность целых чисел в указанном диапазоне.

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

Параметры

start
Int32

Значение первого целого числа в последовательности.

count
Int32

Число последовательных целых чисел для создания.

Возвращаемое значение

Значение IAsyncEnumerable<T> , содержащее диапазон последовательных целых чисел.

Исключения

start + count -1 больше MaxValue.

Применяется к