Update certain Marshal APIs to match exception thrown on .NET Framework (dotnet/corec...
authorAaron Robinson <arobins@microsoft.com>
Thu, 5 Jul 2018 21:29:27 +0000 (14:29 -0700)
committerGitHub <noreply@github.com>
Thu, 5 Jul 2018 21:29:27 +0000 (14:29 -0700)
commitd4f4bd2de07413af45e6706af53766ebe818fd15
treeb800b0f7134fb28a0c3ce8a75c1feb5ac1eab052
parent5a95cc53039f6c1dad0149cbe2c634a1e5c07a89
Update certain Marshal APIs to match exception thrown on .NET Framework (dotnet/coreclr#18791)

Update certain Marshal APIs to match exception thrown on Desktop

Commit migrated from https://github.com/dotnet/coreclr/commit/c32eff71383529355f85c83c3caee1953501e2e1
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.cs
src/coreclr/tests/src/Interop/MarshalAPI/ReadWrite/ReadWriteObject.cs