public object CreateClassProxy(Type classType, Type implementationType, params Type[] interfaceTypes) { var type = ProxyUtil.CreateClassProxy(classType, interfaceTypes); return(Activator.CreateInstance(type)); }
public object CreateInterfaceProxy(Type interfaceType, Type implementationType) { var type = ProxyUtil.CreateInterfaceProxy(interfaceType, implementationType); return(Activator.CreateInstance(type)); }