public ListConstraint(ListConstraintType listType, params string[] list) { if (list == null) { throw new ArgumentNullException("list"); } this.ListType = listType; this.List = new List <string>(list); }
public ListConstraint(ListConstraintType listType, params string[] list) { if (list == null) { throw new ArgumentNullException("list"); } this.ListType = listType; this.List = new List<string>(list); }
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()); } }