myesn

myEsn2E9

hi
github

Linq: Enumerable.Range

Introduction#

Generate a sequence of consecutive integers within a specified range.

public static System.Collections.Generic.IEnumerable<int> Range (int start, int count);

Where:

  • start The value of the first integer in the sequence
  • count The number of sequential integers to generate

Example#

Generate 5 numbers starting from 2:

Enumerable.Range(2, 5);

image

Reference#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.