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

gtest-490.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5725d0948a4afc870fbf671eee33cadc42d779d8 (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
using System;
using System.Collections;
using System.Collections.Generic;

interface IFoo : IEnumerable<Foo>
{
}

class Foo : IFoo
{
	List<Foo> _fooList = new List<Foo> ();

	IEnumerator<Foo> IEnumerable<Foo>.GetEnumerator ()
	{
		return _fooList.GetEnumerator ();
	}

	public IEnumerator GetEnumerator ()
	{
		return _fooList.GetEnumerator ();
	}

	public static void Main ()
	{
	}
}