// 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; namespace Microsoft.AspNetCore.Routing.Template { /// /// The parsed representation of an inline constraint in a route parameter. /// public class InlineConstraint { /// /// Creates a new . /// /// The constraint text. public InlineConstraint(string constraint) { if (constraint == null) { throw new ArgumentNullException(nameof(constraint)); } Constraint = constraint; } /// /// Gets the constraint text. /// public string Constraint { get; } } }