a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
390 B
C#
32 lines
390 B
C#
using System.Collections.Generic;
|
|
|
|
class C
|
|
{
|
|
class ArrayReadOnlyList<T>
|
|
{
|
|
T [] array;
|
|
bool is_value_type;
|
|
|
|
public ArrayReadOnlyList ()
|
|
{
|
|
}
|
|
|
|
public T this [int index]
|
|
{
|
|
get
|
|
{
|
|
return array [index];
|
|
}
|
|
}
|
|
|
|
public IEnumerator<T> GetEnumerator ()
|
|
{
|
|
for (int i = 0; i < array.Length; i++)
|
|
yield return array [i];
|
|
}
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
}
|
|
} |