1 write to Content
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternParameterPolicyReference.cs (1)
21Content = content;
79 references to Content
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
216var expected = parsedRoutePattern.ParameterPolicies[i].Content;
Microsoft.AspNetCore.Mvc.Core (1)
Routing\RoutePatternWriter.cs (1)
49sb.Append(item.Content);
Microsoft.AspNetCore.Routing (5)
ParameterPolicyFactory.cs (3)
40Debug.Assert(reference.ParameterPolicy != null || reference.Content != null); 47if (reference.Content != null) 49return Create(parameter, reference.Content);
Patterns\RoutePatternParameterPolicyReference.cs (1)
41return Content;
Template\InlineConstraint.cs (1)
36Constraint = other.Content!;
Microsoft.AspNetCore.Routing.Tests (72)
Patterns\InlineRouteParameterParserTest.cs (66)
81Assert.Equal("int", constraint.Content); 95Assert.Equal(@"test(\d+)", constraint.Content); 109Assert.Equal("int", constraint.Content); 124Assert.Equal("int", constraint.Content); 139Assert.Equal("int", constraint.Content); 153Assert.Equal(@"test(\d+)", constraint.Content); 169Assert.Equal(@"test(\d+)", constraint.Content); 182constraint => Assert.Equal(@"test(d+)", constraint.Content), 183constraint => Assert.Equal(@"test(w+)", constraint.Content)); 197constraint => Assert.Equal(@"test(d+)", constraint.Content), 198constraint => Assert.Equal(@"test(w+)", constraint.Content)); 211constraint => Assert.Equal(@"test(\d+)", constraint.Content), 212constraint => Assert.Equal(@"test(\w:+)", constraint.Content)); 227constraint => Assert.Equal(@"test(\d+)", constraint.Content), 228constraint => Assert.Equal(@"test(\w+)", constraint.Content)); 244constraint => Assert.Equal(@"test(\d+)", constraint.Content), 245constraint => Assert.Equal(@"test(\w+)", constraint.Content)); 262Assert.Equal("length(6)", constraint.Content); 280constraint => Assert.Equal("int", constraint.Content), 281constraint => Assert.Equal("test(3)", constraint.Content) 325Assert.Equal(@"test(\})", constraint.Content); 340Assert.Equal(@"test(\})", constraint.Content); 353Assert.Equal(@"test(\))", constraint.Content); 368Assert.Equal(@"test(\))", constraint.Content); 381Assert.Equal(@"test(:)", constraint.Content); 396Assert.Equal(@"test(:)", constraint.Content); 409Assert.Equal(@"test(a:b:c)", constraint.Content); 424Assert.Equal("test", constraint.Content); 440constraint => Assert.Equal("test", constraint.Content)); 454constraint => Assert.Equal("test", constraint.Content)); 467Assert.Equal(@"test(\w,\w)", constraint.Content); 480Assert.Equal(@"test(\w)", constraint.Content); 495Assert.Equal(@"test(\w,\w)", constraint.Content); 511Assert.Equal("int", constraint.Content); 525Assert.Equal("test(=)", constraint.Content); 550Assert.Equal("test(a==b)", constraint.Content); 564Assert.Equal("test(a==b)", constraint.Content); 622Assert.Equal("test(=)", constraint.Content); 635Assert.Equal(@"test(\{)", constraint.Content); 648Assert.Equal(@"test(\sd)", constraint.Content); 663Assert.Equal(@"test(\{)", constraint.Content); 676Assert.Equal(@"test(\()", constraint.Content); 689Assert.Equal(@"test(\()", constraint.Content); 702Assert.Equal("test(#$%", constraint.Content); 715constraint => Assert.Equal(@"test(#", constraint.Content), 716constraint => Assert.Equal(@"test1", constraint.Content)); 730constraint => Assert.Equal(@"test(abc:somevalue)", constraint.Content), 731constraint => Assert.Equal(@"name(test1", constraint.Content), 732constraint => Assert.Equal(@"differentname", constraint.Content)); 746Assert.Equal(@"test(constraintvalue", constraint.Content); 761Assert.Equal(@"test(\()", constraint.Content); 776Assert.Equal(@"test(\?)", constraint.Content); 791Assert.Equal(@"test(\?)", constraint.Content); 806Assert.Equal(@"test(\?)", constraint.Content); 821Assert.Equal(@"test(\?)", constraint.Content); 836Assert.Equal(@"test(\?)", constraint.Content); 851constraint => Assert.Equal(@"test(#)", constraint.Content), 852constraint => Assert.Equal(@"$)", constraint.Content)); 867Assert.Equal(@"test(#:)$)", constraint.Content); 882Assert.Equal(@"regex(\\(\\(\\(\\()", constraint.Content); 897Assert.Equal(@"regex(^\d{{3}}-\d{{3}}-\d{{4}}$)", constraint.Content); 912Assert.Equal(@"regex(^\d{{3}}-\d{{3}}-\d{{4}}$)", constraint.Content); 979Assert.Equal(constraintContent, constraintReference.Content); 997Assert.Equal(constraintContent, constraintReference.Content); 1043Assert.Equal(constraintContent, constraintReference.Content); 1060Assert.Equal(constraintContent, constraintReference.Content);
Patterns\RoutePatternFactoryTest.cs (4)
157c => Assert.Equal("int", c.Content)); 170c => Assert.Equal("int", c.Content)); 273c => Assert.Equal("int", c.Content)); 290c => Assert.Equal("int", c.Content));
Patterns\RoutePatternParserTest.cs (2)
739x.Content == y.Content &&