2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git] / tests / test-iter-04.cs
blob002230470285ec7442cf0b10ac5389472438f00c
1 // Compiler options: -langversion:default
3 using System;
4 using System.Collections;
6 class X {
7 static IEnumerable GetRange (int start, int end)
9 for (int i = start; i < end; i++)
10 yield return i;
13 static void Main ()
15 Console.WriteLine ("GetRange 10..20");
17 foreach (int i in GetRange (10, 20)){
18 Console.WriteLine ("i=" + i);