// Copyright (c) Microsoft Open Technologies, Inc. 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.Routing { public class RouteData { public RouteData() { DataTokens = new Dictionary(StringComparer.OrdinalIgnoreCase); Routers = new List(); Values = new RouteValueDictionary(); } public RouteData([NotNull] RouteData other) { DataTokens = new Dictionary(other.DataTokens, StringComparer.OrdinalIgnoreCase); Routers = new List(other.Routers); Values = new RouteValueDictionary(other.Values); } public List Routers { get; private set; } public IDictionary Values { get; private set; } public IDictionary DataTokens { get; private set; } } }