public ListConstraint(ListConstraintType listType, params string[] list)
        {
            if (list == null)
            {
                throw new ArgumentNullException("list");
            }

            this.ListType = listType;
            this.List     = new List <string>(list);
        }
Exemple #2
0
        public ListConstraint(ListConstraintType listType, params string[] list)
        {
            if (list == null)
            {
                throw new ArgumentNullException("list");
            }

            this.ListType = listType;
            this.List = new List<string>(list);
        }
Exemple #3
0
    public ListRouteConstraint(ListConstraintType listType, params string[] list)
    {
        if (list == null)
        {
            throw new ArgumentNullException("list");
        }

        this.ListType = listType;
        this.List     = new List <string>();
        foreach (var item in list)
        {
            this.List.Add(item.ToLowerInvariant());
        }
    }