Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-249.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ec8621d4f50c493f50fc0a8f0c59559abdf3bf92 (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
30
31
32
33
34
35
using System;
using SCG = System.Collections.Generic;

public abstract class EnumerableBase<T> : SCG.IEnumerable<T>
{
	public abstract SCG.IEnumerator<T> GetEnumerator();

	System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
	{
		return GetEnumerator();
	}
}

public abstract class ArrayBase<T> : EnumerableBase<T>
{
	public override SCG.IEnumerator<T> GetEnumerator()
	{
		yield break;
	}

}

public class HashedArrayList<T> : ArrayBase<T>
{
	public override SCG.IEnumerator<T> GetEnumerator()
	{
		return base.GetEnumerator();
	}
}

class X
{
	public static void Main ()
	{ }
}