[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)
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

index 49f44eb..74a92a5 100644 (file)
@@ -102,7 +102,7 @@ namespace System
                [CLSCompliant (false)]
                public unsafe static void SetTypedReference (TypedReference target, Object value)
                {
-                       throw new NotImplementedException ();
+                       throw new NotSupportedException ();
                }
        }
 }