27 lines
738 B
C#
27 lines
738 B
C#
// 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.Diagnostics;
|
|
|
|
namespace Microsoft.AspNetCore.Routing.Patterns
|
|
{
|
|
[DebuggerDisplay("{DebuggerToString()}")]
|
|
public sealed class RoutePatternSeparatorPart : RoutePatternPart
|
|
{
|
|
internal RoutePatternSeparatorPart(string content)
|
|
: base(RoutePatternPartKind.Separator)
|
|
{
|
|
Debug.Assert(!string.IsNullOrEmpty(content));
|
|
|
|
Content = content;
|
|
}
|
|
|
|
public string Content { get; }
|
|
|
|
internal override string DebuggerToString()
|
|
{
|
|
return Content;
|
|
}
|
|
}
|
|
}
|