CompareCloudware.Web/FluentSecurity/Extensions.cs
/// <summary>
/// Gets actionmethods for the specified controller type
/// </summary>
Gets actionmethods for the specified controller type
Gets actionmethods for the specified controller type
public static IEnumerable<MethodInfo> GetActionMethods(this Type controllerType)
        {
            return controllerType
                .GetMethods(
                    BindingFlags.Public |
                    BindingFlags.Instance |
                    BindingFlags.DeclaredOnly
                )
                .Where(x => typeof(ActionResult).IsAssignableFrom(x.ReturnType))
                .AsEnumerable();
        }
public static IEnumerable < MethodInfo > GetActionMethods ( this Type controllerType ) { return controllerType . GetMethods ( BindingFlags . Public | BindingFlags . Instance | BindingFlags . DeclaredOnly ) . Where ( x => typeof ( ActionResult ) . IsAssignableFrom ( x . ReturnType ) ) . AsEnumerable ( ) ; }
Gets actionmethods for the specified controller type
Gets actionmethods for the specified controller type
Type
this