RemotingServices::IsTransparentProxy doesn't work on mobile.
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 1 Mar 2013 16:32:12 +0000 (11:32 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 1 Mar 2013 16:32:12 +0000 (11:32 -0500)
mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs

index 1d206f66b1dddb21980cd4bfc55551252f51b0f1..988a1ed8aeefdbccf9a24abc23767b01c4010c7b 100644 (file)
@@ -107,10 +107,17 @@ namespace System.Runtime.Remoting
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                internal extern static MethodBase GetVirtualMethod (Type type, MethodBase method);
 
+#if MOBILE
+               public static bool IsTransparentProxy (object proxy)
+               {
+                       throw new NotSupportedException ();
+               }
+#else
                [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                public extern static bool IsTransparentProxy (object proxy);
-               
+#endif
+
                internal static IMethodReturnMessage InternalExecuteMessage (
                        MarshalByRefObject target, IMethodCallMessage reqMsg)
                {