public ReflectedControllerDescriptor(string controllerName, Type controllerType)
        {
            this.controllerName = controllerName;

            this.controllerType = controllerType;

            Reflector reflector = new Reflector(controllerType);

            List <ReflectedActionDescriptor> actionDescriptorList = new List <ReflectedActionDescriptor>();

            foreach (KeyValuePair <string, MethodInfo> methodInfoKeyValue in reflector.ObjectMethods)
            {
                string methodName = methodInfoKeyValue.Key;

                MethodInfo methodInfo = methodInfoKeyValue.Value;

                ReflectedActionDescriptor actionDescriptor = new ReflectedActionDescriptor(methodInfo, methodName, this);

                actionDescriptorList.Add(actionDescriptor);
            }

            this.actionDescriptorArray = actionDescriptorList.ToArray();
        }
        public ReflectedControllerDescriptor(string controllerName, Type controllerType)
        {
            this.controllerName = controllerName;

            this.controllerType = controllerType;

            Reflector reflector = new Reflector(controllerType);

            List<ReflectedActionDescriptor> actionDescriptorList = new List<ReflectedActionDescriptor>();

            foreach (KeyValuePair<string, MethodInfo> methodInfoKeyValue in reflector.ObjectMethods)
            {
                string methodName = methodInfoKeyValue.Key;

                MethodInfo methodInfo = methodInfoKeyValue.Value;

                ReflectedActionDescriptor actionDescriptor = new ReflectedActionDescriptor(methodInfo, methodName, this);

                actionDescriptorList.Add(actionDescriptor);
            }

            this.actionDescriptorArray = actionDescriptorList.ToArray();
        }