linux-packaging-mono/mcs/tests/gtest-iter-01.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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