2 using System.Collections;
3 using System.Collections.Generic;
5 interface ITest : IEnumerable<int> {
9 IEnumerator IEnumerable.GetEnumerator () { throw new Exception (); }
10 IEnumerator<int> IEnumerable<int>.GetEnumerator () { yield break; }
16 ITest foo = new Test ();
17 foreach (int i in foo)
18 Console.WriteLine (i);