[netcore] Change exception thrown for SetTypedReference (mono/mono#16518)
authorRyan Lucia <rylucia@microsoft.com>
Tue, 27 Aug 2019 20:53:37 +0000 (16:53 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 27 Aug 2019 20:53:37 +0000 (22:53 +0200)
commitabb2b07eec2808b3663fd7e67133d63413b9ee6c
treea80e795d23af3ceacb944984e4129ecdcfe43ca4
parente6db25facb0af3dad1aadeb26c74309d85ffb644
[netcore] Change exception thrown for SetTypedReference (mono/mono#16518)

This brings us in line with CoreCLR behavior.

Commit migrated from https://github.com/mono/mono/commit/f9f5fff40c2012dc9631b7128d72c945620ce4fb
src/mono/netcore/System.Private.CoreLib/src/System/TypedReference.cs