From 8b1a6afc5691c4e37333a39fb6cca07936a46236 Mon Sep 17 00:00:00 2001 From: Rodrigo Kumpera Date: Fri, 1 Mar 2013 11:32:34 -0500 Subject: [PATCH] Don't check for TransparentProxies on mobile as they don't work. --- mcs/class/corlib/System/DelegateSerializationHolder.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mcs/class/corlib/System/DelegateSerializationHolder.cs b/mcs/class/corlib/System/DelegateSerializationHolder.cs index a49d5a1acee..b71677ce941 100644 --- a/mcs/class/corlib/System/DelegateSerializationHolder.cs +++ b/mcs/class/corlib/System/DelegateSerializationHolder.cs @@ -74,6 +74,7 @@ namespace System Type dt = dasm.GetType (type); Delegate del; if (realTarget != null) { +#if !MOBILE if (RemotingServices.IsTransparentProxy (realTarget)) { // The call to IsInstanceOfType will force the proxy // to load the real type of the remote object. This is @@ -84,6 +85,7 @@ namespace System if (!tt.IsInstanceOfType (realTarget)) throw new RemotingException ("Unexpected proxy type."); } +#endif del = Delegate.CreateDelegate (dt, realTarget, methodName); } else { -- 2.11.4.GIT