2 using System.Collections.Generic;
6 static IEnumerable<T> Create<T> (T [,] self)
8 for (int i = 0; i < self.Length; ++i)
9 yield return self [0, i];
12 public static int Main ()
14 int [,] s = new int [,] { { 1, 2, 3 } };
15 foreach (int i in Create (s))
16 Console.WriteLine (i);