Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-417-lib.cs
1 // Compiler options: -t:library
2
3 using System;
4 using System.Collections;
5 using System.Collections.Generic;
6
7 public class GlobalMonitoredCharacterCollection : ReadonlyCollection<int>
8 {
9 }
10
11 public class ReadonlyCollection<T> : IReadonlyCollection<T>
12 {
13         protected List<T> m_items;
14         protected ReadonlyCollection () { m_items = new List<T> (); }
15
16         IEnumerator<T> IEnumerable<T>.GetEnumerator ()
17         {
18                 return m_items.GetEnumerator ();
19         }
20
21         IEnumerator IEnumerable.GetEnumerator ()
22         {
23                 return m_items.GetEnumerator ();
24         }
25 }
26
27 public interface IReadonlyCollection<T> : IEnumerable<T>
28 {
29 }