2 // System.Runtime.Remoting.WellKnownClientTypeEntry.cs
4 // AUthor: Duncan Mak (duncan@ximian.com)
6 // 2002 (C) Copyright. Ximian, Inc.
10 using System.Reflection;
12 namespace System.Runtime.Remoting {
14 public class WellKnownClientTypeEntry : TypeEntry
18 string app_url = null;
20 public WellKnownClientTypeEntry (Type type, string objectUrl )
22 AssemblyName = type.Assembly.FullName;
23 TypeName = type.FullName;
28 public WellKnownClientTypeEntry (string typeName, string assemblyName, string objectUrl)
30 AssemblyName = assemblyName;
32 Assembly a = Assembly.Load (assemblyName);
33 obj_type = a.GetType (typeName);
36 public string ApplicationUrl {
37 get { return app_url; }
38 set { app_url = value; }
41 public Type ObjectType {
42 get { return obj_type; }
45 public string ObjectUrl {
46 get { return obj_url; }
47 set { obj_url = value; }
50 public override string ToString ()
52 if (ApplicationUrl != null)
53 return TypeName + AssemblyName + ObjectUrl + ApplicationUrl;
55 return TypeName + AssemblyName + ObjectUrl;