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: 7b615431c2ab94c93dbb2b5a6527de653dd1aa3a (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
{
	static void Main ()
	{ }
}