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); }
public static T Get <T>(InvocationHandlerManager invocationManager, params Type[] interfaces) where T : class { return((T)Get(invocationManager, interfaces)); }