1 // Compiler options: -langversion:default
7 using System.Collections;
10 static IEnumerable GetIt (int [] args)
12 foreach (int a in args)
16 static IEnumerable GetMulti (int [,] args)
18 foreach (int a in args)
25 foreach (int i in GetIt (new int [] { 1, 2, 3})){
26 Console.WriteLine ("Got: " + i);
34 foreach (int i in GetMulti (new int [,] { { 10, 20 }, { 30, 40}})){
35 Console.WriteLine ("Got: " + i);