2 writes to Parameters
Microsoft.AspNetCore.Routing (2)
Template\RouteTemplate.cs (2)
38Parameters = new List<TemplatePart>(); 67Parameters = new List<TemplatePart>();
47 references to Parameters
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
109var templateParameters = parsedTemplate?.Parameters?.ToList() ?? new List<TemplatePart>();
Microsoft.AspNetCore.Mvc.Core (1)
Routing\AttributeRoute.cs (1)
209foreach (var parameter in routeInfo.RouteTemplate.Parameters)
Microsoft.AspNetCore.Routing (10)
RouteBase.cs (2)
219foreach (var parameter in parsedTemplate.Parameters) 246foreach (var parameter in parsedTemplate.Parameters)
Template\RouteTemplate.cs (4)
47Parameters.Add(part); 76Parameters.Add(part); 120for (var i = 0; i < Parameters.Count; i++) 122var parameter = Parameters[i];
Tree\TreeRouteBuilder.cs (4)
115foreach (var parameter in routeTemplate.Parameters) 148foreach (var parameter in entry.RouteTemplate.Parameters) 201foreach (var parameter in routeTemplate.Parameters) 220foreach (var parameter in entry.RouteTemplate.Parameters)
Microsoft.AspNetCore.Routing.Tests (35)
InlineRouteParameterParserTests.cs (1)
280var parameters = template.Parameters.ToArray();
Template\TemplateParserTests.cs (34)
37expected.Parameters.Add(expected.Segments[0].Parts[0]); 56expected.Parameters.Add(expected.Segments[0].Parts[0]); 100expected.Parameters.Add(expected.Segments[0].Parts[0]); 108expected.Parameters.Add(expected.Segments[1].Parts[0]); 116expected.Parameters.Add(expected.Segments[2].Parts[0]); 139expected.Parameters.Add(expected.Segments[0].Parts[1]); 161expected.Parameters.Add(expected.Segments[0].Parts[0]); 184expected.Parameters.Add(expected.Segments[0].Parts[0]); 191expected.Parameters.Add(expected.Segments[0].Parts[2]); 214expected.Parameters.Add(expected.Segments[0].Parts[1]); 244expected.Parameters.Add(expected.Segments[0].Parts[0]); 245expected.Parameters.Add(expected.Segments[0].Parts[2]); 274expected.Parameters.Add(expected.Segments[0].Parts[0]); 275expected.Parameters.Add(expected.Segments[0].Parts[2]); 311expected.Parameters.Add(expected.Segments[0].Parts[0]); 312expected.Parameters.Add(expected.Segments[0].Parts[2]); 313expected.Parameters.Add(expected.Segments[0].Parts[4]); 349expected.Parameters.Add(expected.Segments[0].Parts[0]); 350expected.Parameters.Add(expected.Segments[0].Parts[2]); 351expected.Parameters.Add(expected.Segments[0].Parts[4]); 380expected.Parameters.Add(expected.Segments[0].Parts[0]); 381expected.Parameters.Add(expected.Segments[0].Parts[2]); 389expected.Parameters.Add(expected.Segments[1].Parts[0]); 423expected.Parameters.Add(expected.Segments[0].Parts[0]); 424expected.Parameters.Add(expected.Segments[1].Parts[0]); 425expected.Parameters.Add(expected.Segments[1].Parts[2]); 455expected.Parameters.Add(expected.Segments[0].Parts[0]); 456expected.Parameters.Add(expected.Segments[1].Parts[1]); 483expected.Parameters.Add(expected.Segments[0].Parts[0]); 849if (x.Parameters.Count != y.Parameters.Count) 854for (var i = 0; i < x.Parameters.Count; i++) 856if (!Equals(x.Parameters[i], y.Parameters[i]))