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

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

public class Foo<T>
{
	public void Map<S> (S value)
	{
		Foo<S> result = new Foo<S> ();
		result.Test (value);
	}

	protected virtual void Test (T value)
	{
		Console.WriteLine (value);
	}

}

class X
{
	public static void Main ()
	{
		Foo<double> a = new Foo<double> ();
		a.Map<string> ("Hello World");
	}
}