linux-packaging-mono/mcs/tests/gtest-iter-01.cs

32 lines
390 B
C#
Raw Normal View History

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 ()
{
}
}