Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-iter-01.cs
1 using System.Collections.Generic;
2
3 class C
4 {
5         class ArrayReadOnlyList<T>
6         {
7                 T [] array;
8                 bool is_value_type;
9
10                 public ArrayReadOnlyList ()
11                 {
12                 }
13
14                 public T this [int index]
15                 {
16                         get
17                         {
18                                 return array [index];
19                         }
20                 }
21
22                 public IEnumerator<T> GetEnumerator ()
23                 {
24                         for (int i = 0; i < array.Length; i++)
25                                 yield return array [i];
26                 }
27         }
28
29         public static void Main ()
30         {
31         }
32 }