* ObjRef.cs: Use IsInstanceOfType instead of IsAssignableFrom
since GetType() may not return the correct type if the object is
a remoting proxy.
svn path=/trunk/mcs/; revision=44637
+2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
+
+ * ObjRef.cs: Use IsInstanceOfType instead of IsAssignableFrom
+ since GetType() may not return the correct type if the object is
+ a remoting proxy.
+
2005-05-12 Atsushi Enomoto <atsushi@ximian.com>
* RemotingConfiguration.cs : MiniParser->SmallXmlParser changes.
uri = RemotingServices.GetObjectUri(mbr);
typeInfo = new TypeInfo(type);
- if (!type.IsAssignableFrom (mbr.GetType()))
+ if (!type.IsInstanceOfType (mbr))
throw new RemotingException ("The server object type cannot be cast to the requested type " + type.FullName + ".");
UpdateChannelInfo();