Пример #1
0
        public static object Of(Type innerType, Type baseType, params object[] parameters)
        {
            Type proxyType = CreateType(innerType, baseType);

            return(FastObjectCreator.CreateObject(proxyType, parameters));
        }
Пример #2
0
        public static TBase Of <T, TBase>(params object[] parameters) where T : class, TBase
        {
            Type proxyType = CreateType <T, TBase>();

            return((TBase)FastObjectCreator.CreateObject(proxyType, parameters));
        }
Пример #3
0
        public static T Of <T>(params object[] parameters) where T : class
        {
            Type proxyType = CreateType <T>();

            return((T)FastObjectCreator.CreateObject(proxyType, parameters));
        }