RouteAttribute.RouteAttribute C# (CSharp) Méthode

RouteAttribute() public méthode

public RouteAttribute ( bool isPost, string action ) : System
isPost bool
action string
Résultat System
    public RouteAttribute(bool isPost, string action)
    {
        //remove leading /
        if (action != "/" && action != "/*" && action[0] == '/')
            action = action.Substring(1, action.Length - 1);

        this.IsPost = isPost;
        this.Action = action;
    }
RouteAttribute