public ControllerInfo(Type type) { this.Type = type; var ms = GetMethods(Type); DefaultAction = GetDefaultAction(ms); Actions = GetActions(ms); IsScaffolding = Type.HasAttribute <ScaffoldingAttribute>(true); ListStyle = GetListStyle(); Name = GetControllerName(); LowerName = Name.ToLower(); Constructor = ClassHelper.GetConstructorDelegate(Type); }
public SimpleClassCreator(Type type, int index, string name, ConstructorInfo constructor) : base(type, index, name) { Constructor = ClassHelper.GetConstructorDelegate(constructor); }