Range
In this chapter you will learn:
Get to know Range operator
using System;//from j a v a 2 s.c om
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main()
{
foreach (int i in Enumerable.Range(5, 5))
{
Console.Write(i + " "); // 5 6 7 8 9
}
}
}
The output:
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » Linq Operators