1 write to Content
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternLiteralPart.cs (1)
23Content = content;
19 references to Content
Microsoft.AspNetCore.Mvc.Core (1)
Routing\RoutePatternWriter.cs (1)
64sb.Append(literalPart.Content);
Microsoft.AspNetCore.OpenApi (1)
Extensions\ApiDescriptionExtensions.cs (1)
60strippedRoute.Append(literalPart.Content);
Microsoft.AspNetCore.Routing (10)
Matching\DfaMatcherBuilder.cs (1)
264AddLiteralNode(_includeLabel, nextParents, parent, literalPart.Content);
Patterns\RoutePatternLiteralPart.cs (1)
33return Content;
Patterns\RoutePatternMatcher.cs (4)
211if (!stringSegment.Equals(part.Content, StringComparison.OrdinalIgnoreCase)) 382literal.Content, 404if (part is RoutePatternLiteralPart literal && ((indexOfLiteral + literal.Content.Length) != requestSegment.Length)) 451parameterStartIndex = newLastIndex + literal.Content.Length;
Patterns\RoutePatternParser.cs (2)
377else if (previousPart is RoutePatternLiteralPart literal && literal.Content != PeriodString) 391parts[i - 1] = RoutePatternFactory.SeparatorPart(((RoutePatternLiteralPart)previousPart).Content);
Template\TemplateBinder.cs (1)
529if (!context.Accept(literalPart.Content))
Template\TemplatePart.cs (1)
35Text = literal.Content;
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcherBuilder.cs (1)
25.Select(s => s.IsSimple && s.Parts[0] is RoutePatternLiteralPart literalPart ? literalPart.Content : null)
Microsoft.AspNetCore.Routing.Tests (6)
Matching\BarebonesMatcherBuilder.cs (1)
25.Select(s => s.IsSimple && s.Parts[0] is RoutePatternLiteralPart literalPart ? literalPart.Content : null)
Patterns\RoutePatternFactoryTest.cs (1)
742Assert.Equal(literal, part.Content);
Patterns\RoutePatternParserTest.cs (2)
723return x.Content == y.Content;
Template\TemplateSegmentTest.cs (2)
40Assert.Equal(literalPartA.Content, ((RoutePatternLiteralPart)routePatternPathSegment.Parts[1]).Content);