Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-iter-09.cs
1 using System;
2 using System.Collections.Generic;
3
4 class Test
5 {
6         static IEnumerable<T> Create<T> (T [,] self)
7         {
8                 for (int i = 0; i < self.Length; ++i)
9                         yield return self [0, i];
10         }
11
12         public static int Main ()
13         {
14                 int [,] s = new int [,] { { 1, 2, 3 } };
15                 foreach (int i in Create (s))
16                         Console.WriteLine (i);
17
18                 return 0;
19         }
20 }