This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / tests / 2test-4.cs
1 using System;
2 using System.Collections;
3
4 class X {
5         static IEnumerable GetRange (int start, int end)
6         {
7                 for (int i = start; i < end; i++)
8                         yield return i;
9         }
10
11         static void Main ()
12         {
13                 Console.WriteLine ("GetRange 10..20");
14                                    
15                 foreach (int i in GetRange (10, 20)){
16                         Console.WriteLine ("i=" + i);
17                 }
18         }
19 }