diff options
Diffstat (limited to 'linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseTypeAttribute.cs')
-rw-r--r-- | linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseTypeAttribute.cs | 12 |
1 files changed, 6 insertions, 6 deletions
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 |