diff options
author | Mike Voorhees <michaelv@unity3d.com> | 2017-05-12 21:36:04 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-05-13 17:42:32 +0300 |
commit | a880ad1206eb026efcccc2e3c3fec154abd87c1a (patch) | |
tree | 55ccb6aea46a62640e99373a9ca5c4d81f3f6729 /linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseTypeAttribute.cs | |
parent | e56adeca46d53d69f846fbffb268ddad1786d2b1 (diff) |
Remove fields from attributes in expectations assembly
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 |