C# .Net creating a range of numbers

To create a range of numbers, say 1..1000000 use the following statement:

 var myRange = Enumerable.Range(1, 1000000);

Leave a Reply

Your email address will not be published. Required fields are marked *