Method Range
View SourceRange(int, int, int)
Generates a sequence of integral numbers within a specified range.
Declaration
public static IAsyncEnumerable<int> Range(int start, int count, int step)
Parameters
Type | Name | Description |
---|---|---|
int | start | The value of the first integer in the sequence. |
int | count | The number of sequential integers to generate. |
int | step | The step increment for each returned value. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<int> | An IEnumerable<T>that contains a range of sequential integral numbers. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|