2 using System
.Collections
;
3 using System
.Collections
.Generic
;
5 namespace MonoGenericIteratorTest
11 public abstract class MyCollectionBase
<T
> : Dictionary
<string, T
>
13 public new virtual IEnumerator
GetEnumerator ()
15 return Values
.GetEnumerator ();
19 public class MyCollection
: MyCollectionBase
<MyType
>
25 public static void Main (string[] args
)
27 MyCollection myCollection
= new MyCollection ();
29 foreach (MyType item
in myCollection
) {
30 Console
.WriteLine ("Success.");