private static Type CreateDynamicType(Class @class) { var factoryInterface = @class.Inherit.Replace('.', '_'); return(DynamicTypeBuilderService.CreateDynamicType(string.Format("{0}FactoryFile", factoryInterface), typeof(FactoryFile), factoryInterface)); }
private static Type CreateDynamicType(string attributeName) { return(DynamicTypeBuilderService.CreateDynamicType(string.Format("{0}Attribute", attributeName), typeof(Attribute), attributeName)); }