1 write to Parameters
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePattern.cs (1)
58Parameters = parameters;
67 references to Parameters
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
156parsedRoutePatterns = routePattern.Parameters;
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
JsonTranscodingServiceMethodProviderTests.cs (2)
32Assert.Single(endpoint.RoutePattern.Parameters); 33Assert.Equal("name", endpoint.RoutePattern.Parameters[0].Name);
Microsoft.AspNetCore.Routing (16)
Patterns\DefaultRoutePatternTransformer.cs (2)
175updatedParameters = new List<RoutePatternParameterPart>(original.Parameters); 193updatedParameters ?? original.Parameters,
Patterns\RoutePattern.cs (1)
142var parameters = Parameters;
Patterns\RoutePatternFactory.cs (2)
1091var parameters = CombineLists(left.Parameters, right.Parameters, CheckDuplicateParameters, rawText);
RouteEndpointDataSource.cs (1)
285foreach (var routePatternPart in pattern.Parameters)
Template\TemplateBinder.cs (10)
84for (var i = 0; i < pattern.Parameters.Count; i++) 86filters.Remove(pattern.Parameters[i].Name); 116for (var i = 0; i < pattern.Parameters.Count; i++) 118filters.Remove(pattern.Parameters[i].Name); 253var parameters = _pattern.Parameters; 254var parameterCount = _pattern.Parameters.Count; 722var slots = new KeyValuePair<string, object?>[pattern.Parameters.Count + filters.Length]; 724for (var i = 0; i < pattern.Parameters.Count; i++) 726slots[i] = new KeyValuePair<string, object?>(pattern.Parameters[i].Name, null); 731slots[i + pattern.Parameters.Count] = new KeyValuePair<string, object?>(filters[i].Key, null);
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (2)
53for (var i = 0; i < withoutDefaults.Parameters.Count; i++) 55var parameter = withoutDefaults.Parameters[i];
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (2)
57for (var i = 0; i < endpoint.RoutePattern.Parameters.Count; i++) 59var parameter = endpoint.RoutePattern.Parameters[i];
Microsoft.AspNetCore.Routing.Tests (44)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
765Assert.Single(routeEndpointBuilder.RoutePattern.Parameters); 766Assert.True(routeEndpointBuilder.RoutePattern.Parameters[0].IsCatchAll);
Matching\RouteMatcherBuilder.cs (2)
53for (var i = 0; i < withoutDefaults.Parameters.Count; i++) 55var parameter = withoutDefaults.Parameters[i];
Matching\TreeRouterMatcherBuilder.cs (2)
57for (var i = 0; i < endpoint.RoutePattern.Parameters.Count; i++) 59var parameter = endpoint.RoutePattern.Parameters[i];
Patterns\DefaultRoutePatternTransformerTest.cs (4)
171Assert.Same(actual.Parameters, original.Parameters); 199Assert.NotSame(actual.Parameters, original.Parameters);
Patterns\InlineRouteParameterParserTest.cs (1)
272var parameters = routePattern.Parameters.ToArray();
Patterns\RoutePatternFactoryTest.cs (28)
424Assert.Equal(3, actual.Parameters.Count); 425Assert.Same(paramPartB, actual.Parameters[0]); 426Assert.Same(paramPartC, actual.Parameters[1]); 427Assert.Same(paramPartD, actual.Parameters[2]); 453Assert.Equal(3, actual.Parameters.Count); 454Assert.Same(paramPartB, actual.Parameters[0]); 455Assert.Same(paramPartC, actual.Parameters[1]); 456Assert.Same(paramPartD, actual.Parameters[2]); 483Assert.Equal(3, actual.Parameters.Count); 484Assert.Equal(paramPartB.Name, actual.Parameters[0].Name); 485Assert.Equal(12, actual.Parameters[0].Default); 487Assert.NotSame(paramPartB, actual.Parameters[0]); 488Assert.Equal(paramPartC.Name, actual.Parameters[1].Name); 489Assert.Equal(4, actual.Parameters[1].Default); 490Assert.NotSame(paramPartC, actual.Parameters[1]); 492Assert.Equal(paramPartD.Name, actual.Parameters[2].Name); 493Assert.Null(actual.Parameters[2].Default); 494Assert.Same(paramPartD, actual.Parameters[2]); 523Assert.Equal(3, actual.Parameters.Count); 524Assert.Equal(paramPartB.Name, actual.Parameters[0].Name); 525Assert.Equal(12, actual.Parameters[0].Default); 527Assert.NotSame(paramPartB, actual.Parameters[0]); 528Assert.Equal(paramPartC.Name, actual.Parameters[1].Name); 529Assert.Equal(4, actual.Parameters[1].Default); 530Assert.NotSame(paramPartC, actual.Parameters[1]); 532Assert.Equal(paramPartD.Name, actual.Parameters[2].Name); 533Assert.Null(actual.Parameters[2].Default); 534Assert.Same(paramPartD, actual.Parameters[2]);
Patterns\RoutePatternParserTest.cs (5)
680if (x.Parameters.Count != y.Parameters.Count) 685for (var i = 0; i < x.Parameters.Count; i++) 687if (!Equals(x.Parameters[i], y.Parameters[i]))