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

gtest-113.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d300d420d656933a2cd391030a81ac9b84a94f86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;

public delegate V Mapper<T,V> (T item);

public class List<T>
{
	public void Map<V> (Mapper<T,V> mapper)
	{ }
}

class X
{
	public static void Main ()
	{
		List<int> list = new List<int> ();
		list.Map (new Mapper<int,double> (delegate (int i) { return i/10.0; }));
	}
}