blob: 0565f82581965ae5913b35ad854d2d44b0bb3899 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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>
{
}
|