Esempio n. 1
0
        private static Type CreateDynamicType(Class @class)
        {
            var factoryInterface = @class.Inherit.Replace('.', '_');

            return(DynamicTypeBuilderService.CreateDynamicType(string.Format("{0}FactoryFile", factoryInterface), typeof(FactoryFile), factoryInterface));
        }
Esempio n. 2
0
 private static Type CreateDynamicType(string attributeName)
 {
     return(DynamicTypeBuilderService.CreateDynamicType(string.Format("{0}Attribute", attributeName), typeof(Attribute), attributeName));
 }