public override MarshalByRefObject CreateInstance(Type type) { Console.WriteLine("Creating proxy of type " + type.ToString()); MarshalByRefObject instance = base.CreateInstance(type); MyProxy proxy = new MyProxy(type, instance); return (MarshalByRefObject)proxy.GetTransparentProxy(); }
public override MarshalByRefObject CreateInstance(Type type) { Console.WriteLine("Creating proxy of type " + type.ToString()); MarshalByRefObject instance = base.CreateInstance(type); MyProxy proxy = new MyProxy(type, instance); return((MarshalByRefObject)proxy.GetTransparentProxy()); }