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

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

public delegate int Int2Int (int i);

public class FunEnumerable
{
	int size;
	Int2Int f;

	public FunEnumerable(int size, Int2Int f)
	{
		this.size = size; this.f = f;
	}

	public IEnumerator<int> GetEnumerator()
	{
		yield return f (size);
	}
}

class X
{
	static void Main ()
	{ }
}