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

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

namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
	public class RemovedTypeInAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute {
		public readonly string AssemblyFileName;
		public readonly string TypeName;

		public RemovedTypeInAssemblyAttribute (string assemblyFileName, Type type)
		{
			AssemblyFileName = assemblyFileName;
			TypeName = type.ToString ();
		}

		public RemovedTypeInAssemblyAttribute (string assemblyFileName, string typeName)
		{
			AssemblyFileName = assemblyFileName;
			TypeName = typeName;
		}
	}
}