[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-417-lib.cs
blob0565f82581965ae5913b35ad854d2d44b0bb3899
1 // Compiler options: -t:library
3 using System;
4 using System.Collections;
5 using System.Collections.Generic;
7 public class GlobalMonitoredCharacterCollection : ReadonlyCollection<int>
11 public class ReadonlyCollection<T> : IReadonlyCollection<T>
13 protected List<T> m_items;
14 protected ReadonlyCollection () { m_items = new List<T> (); }
16 IEnumerator<T> IEnumerable<T>.GetEnumerator ()
18 return m_items.GetEnumerator ();
21 IEnumerator IEnumerable.GetEnumerator ()
23 return m_items.GetEnumerator ();
27 public interface IReadonlyCollection<T> : IEnumerable<T>