// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; namespace Microsoft.AspNet.Mvc.Routing { public class UrlMatchingNode { public UrlMatchingNode(int length) { Length = length; Matches = new List(); Literals = new Dictionary(StringComparer.OrdinalIgnoreCase); } public int Length { get; } // These entries are sorted by precedence then template public List Matches { get; } public Dictionary Literals { get; } public UrlMatchingNode ConstrainedParameters { get; set; } public UrlMatchingNode Parameters { get; set; } public UrlMatchingNode ConstrainedCatchAlls { get; set; } public UrlMatchingNode CatchAlls { get; set; } } }