a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
578 B
C#
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>
|
|
{
|
|
}
|