2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / tests / gtest-073.cs
blobaa7165c727108de88895a28b72437fd26862ce0d
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
5 class MyList<T> : IEnumerable<T>
7 public IEnumerator<T> GetEnumerator ()
9 yield break;
12 IEnumerator IEnumerable.GetEnumerator ()
14 return GetEnumerator ();
18 struct Foo<T>
20 public readonly T Data;
22 public Foo (T data)
24 this.Data = data;
28 class X
30 static void Main ()
32 MyList<Foo<int>> list = new MyList <Foo<int>> ();
33 foreach (Foo<int> foo in list)