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