コード例 #1
0
ファイル: MyProxy.cs プロジェクト: kingjiang/SharpDevelopLite
		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();
		}
コード例 #2
0
        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());
        }