2004-04-14 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.Remoting / WellKnownServiceTypeEntry.cs
index e97b5038ba5c5e591b2e77cfcc04c30f4c092ed4..971d5b69ae4de5a2dd3e4eb2ba276d8a400f414b 100644 (file)
@@ -36,6 +36,8 @@ namespace System.Runtime.Remoting {
                        obj_type = a.GetType (typeName);
                        obj_uri = objectUri;
                        obj_mode = mode;
+                       if (obj_type == null) 
+                               throw new RemotingException ("Type not found: " + typeName + ", " + assemblyName);
                }
 
                public IContextAttribute [] ContextAttributes {
@@ -55,10 +57,9 @@ namespace System.Runtime.Remoting {
                        get { return obj_uri; }
                }
 
-               [MonoTODO]
                public override string ToString ()
                {
-                       return TypeName + AssemblyName + ObjectUri;
+                       return TypeName + ", " + AssemblyName + " " + ObjectUri;
                }
        }
 }