1 // Compiler options: -t:library
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
>