From 061f782c4bc3312fe4225c3c8f437d77d1c25e12 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 20 Jul 2017 22:47:48 -0400 Subject: [PATCH] [Marshal.IsComObject] Make this predicate return false instead of throwing an exception which is what the calling code expects (#5246) --- mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs b/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs index 03eda1eea08..128b8c983b1 100644 --- a/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs +++ b/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs @@ -741,7 +741,7 @@ namespace System.Runtime.InteropServices #else public static bool IsComObject (object o) { - throw new PlatformNotSupportedException (); + return false; } #endif -- 2.25.1