コード例 #1
0
ファイル: Reflector.cs プロジェクト: zxp-proteus/cl
        public Object makeProxy(IRuntimeServer runtime, int marshallFlags, int marshallDepth, ArrayList interfaceList)
        {
            Type[] interfaces = new Type[interfaceList.Count];
            for (int i = 0; i < interfaces.Length; i++)
            {
                interfaces[i] = RuntimeServer.typeArg(interfaceList[i]);
            }
            ProxyHandler handler = new ProxyHandler(runtime, marshallFlags, marshallDepth);

            return(Proxy.BuildProxy(new Proxy.InvocationDelegate(handler.invoke), interfaces));
        }
コード例 #2
0
 public Object makeProxy(IRuntimeServer runtime, int marshallFlags, int marshallDepth, ArrayList interfaceList)
 {
     Type[] interfaces = new Type[interfaceList.Count];
     for(int i=0;i<interfaces.Length;i++)
     interfaces[i] = RuntimeServer.typeArg(interfaceList[i]);
     ProxyHandler handler	=	new ProxyHandler(runtime,marshallFlags,marshallDepth);
     return Proxy.BuildProxy(new Proxy.InvocationDelegate(handler.invoke),interfaces);
 }
コード例 #3
0
 public ProxyHandler(IRuntimeServer runtime, int marshallFlags, int marshallDepth)
 {
     this.runtime       = runtime;
     this.marshallFlags = marshallFlags;
     this.marshallDepth = marshallDepth;
 }
コード例 #4
0
 public ProxyHandler(IRuntimeServer runtime,int marshallFlags,int marshallDepth)
 {
     this.runtime		= runtime;
     this.marshallFlags	= marshallFlags;
     this.marshallDepth	= marshallDepth;
 }