2 using System.Collections;
5 static IEnumerator GetIt ()
12 static IEnumerable GetIt2 ()
21 IEnumerator e = GetIt ();
24 while (e.MoveNext ()){
25 Console.WriteLine ("Value=" + e.Current);
26 total += (int) e.Current;
33 foreach (int i in GetIt2 ()){
34 Console.WriteLine ("Value=" + i);