Remove duplicate parameter check in TypeLoadException
authorViktor Hofer <viktor.hofer@outlook.com>
Wed, 4 Oct 2017 14:52:43 +0000 (16:52 +0200)
committerViktor Hofer <viktor.hofer@outlook.com>
Wed, 4 Oct 2017 14:52:43 +0000 (16:52 +0200)
src/mscorlib/src/System/TypeLoadException.cs

index cbac2fe..e00d174 100644 (file)
@@ -106,9 +106,6 @@ namespace System
 
         protected TypeLoadException(SerializationInfo info, StreamingContext context) : base(info, context)
         {
-            if (info == null)
-                throw new ArgumentNullException(nameof(info));
-
             ClassName = info.GetString("TypeLoadClassName");
             AssemblyName = info.GetString("TypeLoadAssemblyName");
             MessageArg = info.GetString("TypeLoadMessageArg");