2 using System
.Collections
;
3 using System
.Collections
.Generic
;
12 class C
: IEnumerable
, IEnumerable
<A
>
14 public class GetEnumerator
18 IEnumerator IEnumerable
.GetEnumerator ()
20 throw new ApplicationException ();
23 IEnumerator
<A
> IEnumerable
<A
>.GetEnumerator ()
25 return new List
<A
> ().GetEnumerator ();
35 public static int Main ()
37 foreach (var v
in new C ()) {
41 foreach (var v
in new D ()) {