1 // CS1579: foreach statement cannot operate on variables of type `Foo' because it does not contain a definition for `GetEnumerator' or is inaccessible
5 using System
.Collections
;
9 public static void Main ()
12 foreach (object o
in f
)
13 Console
.WriteLine (o
);
19 public Func
<IEnumerator
> GetEnumerator
;