" href="/post/Replace-Listlt;Tgt;Where()-with-your-own-Where-to-understand-Funclt;Tgt;" /> Sunil Ravulapalli | Enumerable.Range Example

Enumerable.Range Example

by sunil ravulapalli /1. March 2014 05:18 /c# /Comments (0)

 

var numbers = Enumerable.Range(1, 10);

foreach(var num in numbers)

{

	Console.WriteLine(num);

}

 

OUTPUT:

1
2
3
4
5
6
7
8
9
10

 

blog comments powered by Disqus