ArgumentException: use system-supplied message if message is null (dotnet/coreclr...
authorHerman Eldering <HermanEldering@users.noreply.github.com>
Sun, 23 Jun 2019 02:52:42 +0000 (04:52 +0200)
committerJan Kotas <jkotas@microsoft.com>
Sun, 23 Jun 2019 02:52:42 +0000 (19:52 -0700)
commit1e34797d8a3fd58118021b0546d02280ccfd8906
treef893fe3c63e581bcd150efa74139e3a481b0ede9
parentd720f04d06d41d5a3774e3bf57db3eb58770f244
ArgumentException: use system-supplied message if message is null (dotnet/coreclr#25115)

Enable using a system-supplied message while also providing an argument/parameter name by passing in a null message. Made to match the behavior of FileNotFoundException.

Commit migrated from https://github.com/dotnet/coreclr/commit/248f087b8db718880c82ccd95286c133f2c36ec8
src/libraries/System.Private.CoreLib/src/System/ArgumentException.cs