Calling the Range Operator : Enumerable.Range « LINQ « C# / CSharp Tutorial






using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;

public class MainClass {
    public static void Main() {
        IEnumerable<int> ints = Enumerable.Range(1, 10);
        foreach (int i in ints)
            Console.WriteLine(i);
    }
}








22.35.Enumerable.Range
22.35.1.Use Generation Operators: Range
22.35.2.Calling the Range Operator