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

gtest-155.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a6a77d3d38c8c481d6460fdff55148ca9b06770d (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
public interface IBase
{
	void DoSomeThing();
}

public interface IExtended : IBase
{
	void DoSomeThingElse();
}

public class MyClass<T> where T: IExtended, new()
{
	public MyClass()
	{
		T instance = new T();
		instance.DoSomeThing();
	}
}

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