must be the object class or a base class. This fixes bug #61249.
svn path=/branches/mono-1-0/mcs/; revision=31369
+2004-07-22 Lluis Sanchez Gual <lluis@novell.com>
+
+ * ObjRef.cs: Fixed type check in in ObjRef constructor. The requested class
+ must be the object class or a base class. This fixes bug #61249.
+
2004-07-22 Lluis Sanchez Gual <lluis@novell.com>
* RemotingServices.cs: Changed GetMethodBaseFromMethodMessage so its code
uri = RemotingServices.GetObjectUri(mbr);
typeInfo = new TypeInfo(type);
- if (!typeInfo.CanCastTo(mbr.GetType(), mbr))
+ if (!type.IsAssignableFrom (mbr.GetType()))
throw new RemotingException ("The server object type cannot be cast to the requested type " + type.FullName + ".");
UpdateChannelInfo();