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

TypeUsedViaReflectionLdstrIncomplete.cs « Reflection « Mono.Linker.Tests.Cases « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7e10e2285f3e4a51ae94aa415d758d6c78a40f90 (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
26
using System;
using Mono.Linker.Tests.Cases.Expectations.Assertions;

namespace Mono.Linker.Tests.Cases.Reflection
{
	/// <summary>
	/// This case we can't detect and need to gracefully do nothing
	/// </summary>
	public class TypeUsedViaReflectionLdstrIncomplete
	{
		public static void Main ()
		{
			var typePart = GetTypePart ();
			var assemblyPart = ",test";
			var typeKept = Type.GetType (string.Concat (typePart, assemblyPart), false);
		}

		public class Full { }

		[Kept]
		static string GetTypePart ()
		{
			return "Mono.Linker.Tests.Cases.Reflection.TypeUsedViaReflectionLdstrIncomplete+Full";
		}
	}
}