5 using System.Collections;
8 static IEnumerable GetIt (int [] args)
10 foreach (int a in args)
14 static IEnumerable GetMulti (int [,] args)
16 foreach (int a in args)
23 foreach (int i in GetIt (new int [] { 1, 2, 3})){
24 Console.WriteLine ("Got: " + i);
32 foreach (int i in GetMulti (new int [,] { { 10, 20 }, { 30, 40}})){
33 Console.WriteLine ("Got: " + i);