Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public SimpleClassCreator(Type type, int index, string name, ConstructorInfo constructor)
     : base(type, index, name)
 {
     Constructor = ClassHelper.GetConstructorDelegate(constructor);
 }