Fix ArgumentNullException messages passed as parameter names (dotnet/coreclr#2889)
authorHugh Bellamy <hughbellars@gmail.com>
Tue, 10 May 2016 14:52:05 +0000 (15:52 +0100)
committerJan Kotas <jkotas@microsoft.com>
Tue, 10 May 2016 14:52:05 +0000 (07:52 -0700)
commit29af121b4fe15a79daa9623cb9a0831286d7bd9d
tree4f9ab6f1f154d39b49074b2b52e28ddd7d3ee83f
parentb319c324985465fa555214cd391a941aa75faaed
Fix ArgumentNullException messages passed as parameter names (dotnet/coreclr#2889)

Fixed several ArgumentNullExceptions that throw with the message as the parameter name, leading to potential confusion for developers.

Commit migrated from https://github.com/dotnet/coreclr/commit/ad2485b93ce14437c0dc8b4fb69b0a54177fe09f
src/coreclr/src/mscorlib/src/System/AppDomain.cs
src/coreclr/src/mscorlib/src/System/AppDomainManager.cs
src/coreclr/src/mscorlib/src/System/Globalization/DateTimeFormatInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/FieldInfo.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs
src/coreclr/src/mscorlib/src/System/Security/Policy/ApplicationTrust.cs
src/coreclr/src/mscorlib/src/System/StubHelpers.cs
src/coreclr/src/mscorlib/src/System/Text/StringBuilder.cs
src/coreclr/src/mscorlib/src/System/Threading/WaitHandle.cs