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

IsAssignableFrom.cs « Reflection « Mono.Linker.Tests.Cases « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fe6a9e2678079885f7c1dc4991f369e17302dbeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

using Mono.Linker.Tests.Cases.Expectations.Assertions;

namespace Mono.Linker.Tests.Cases.Reflection
{
	class IsAssignableFrom
	{
		[Kept]
		interface IFoo { }

		[Kept]
		[KeptInterface (typeof (IFoo))]
		class Foo : IFoo { }

		static void Main ()
		{
			typeof (IFoo).IsAssignableFrom (typeof (Foo));
		}

	}
}