linux-packaging-mono/mcs/tests/gtest-417-lib.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

30 lines
578 B
C#

// Compiler options: -t:library
using System;
using System.Collections;
using System.Collections.Generic;
public class GlobalMonitoredCharacterCollection : ReadonlyCollection<int>
{
}
public class ReadonlyCollection<T> : IReadonlyCollection<T>
{
protected List<T> m_items;
protected ReadonlyCollection () { m_items = new List<T> (); }
IEnumerator<T> IEnumerable<T>.GetEnumerator ()
{
return m_items.GetEnumerator ();
}
IEnumerator IEnumerable.GetEnumerator ()
{
return m_items.GetEnumerator ();
}
}
public interface IReadonlyCollection<T> : IEnumerable<T>
{
}