示例#1
0
        public static object Get(InvocationHandlerManager invocationManager, params Type[] interfaces)
        {
            Type proxyType = ProxyGenerator.DefaultGenerator.CreateProxy(interfaces);

            SharpProxyBase proxy = (SharpProxyBase)proxyType.GetConstructor(new Type[] { typeof(InvocationHandlerManager) }).Invoke(new object[] { invocationManager });

            return(proxy);
        }
示例#2
0
 public static T Get <T>(InvocationHandlerManager invocationManager, params Type[] interfaces) where T : class
 {
     return((T)Get(invocationManager, interfaces));
 }