Пример #1
0
        public object CreateClassProxy(Type classType, Type implementationType, params Type[] interfaceTypes)
        {
            var type = ProxyUtil.CreateClassProxy(classType, interfaceTypes);

            return(Activator.CreateInstance(type));
        }
Пример #2
0
        public object CreateInterfaceProxy(Type interfaceType, Type implementationType)
        {
            var type = ProxyUtil.CreateInterfaceProxy(interfaceType, implementationType);

            return(Activator.CreateInstance(type));
        }