From a880ad1206eb026efcccc2e3c3fec154abd87c1a Mon Sep 17 00:00:00 2001 From: Mike Voorhees Date: Fri, 12 May 2017 14:36:04 -0400 Subject: Remove fields from attributes in expectations assembly --- .../Assertions/KeptBaseTypeAttribute.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseTypeAttribute.cs') diff --git a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseTypeAttribute.cs b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseTypeAttribute.cs index ff1f2fa84..2824be630 100644 --- a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseTypeAttribute.cs +++ b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseTypeAttribute.cs @@ -5,18 +5,18 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions [AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] public sealed class KeptBaseTypeAttribute : KeptAttribute { - public readonly Type BaseType; - public readonly object [] GenericParameterNames; - public KeptBaseTypeAttribute (Type baseType) { - BaseType = baseType; + if (baseType == null) + throw new ArgumentNullException (nameof (baseType)); } public KeptBaseTypeAttribute (Type baseType, params object[] typeArguments) { - BaseType = baseType; - GenericParameterNames = typeArguments; + if (baseType == null) + throw new ArgumentNullException (nameof (baseType)); + if (typeArguments == null) + throw new ArgumentNullException (nameof (typeArguments)); } } } \ No newline at end of file -- cgit v1.2.3