1 // cs1579-2.cs: foreach statement cannot operate on variables of type `Foo' because it does not contain a definition for `GetEnumerator' or is not accessible
5 using System
.Collections
;
9 public static void Main ()
12 foreach (object o
in f
)
13 Console
.WriteLine (o
);
19 internal IEnumerator
GetEnumerator ()
21 return new ArrayList ().GetEnumerator ();