2 using System
.Collections
;
3 using System
.Collections
.Generic
;
5 class MyList
<T
> : IEnumerable
<T
>
7 public IEnumerator
<T
> GetEnumerator ()
12 IEnumerator IEnumerable
.GetEnumerator ()
14 return GetEnumerator ();
20 public readonly T Data
;
32 MyList
<Foo
<int>> list
= new MyList
<Foo
<int>> ();
33 foreach (Foo
<int> foo
in list
)