2 writes to Name
Microsoft.AspNetCore.Routing (2)
Template\TemplatePart.cs (2)
40Name = parameter.Name; 93Name = name,
90 references to Name
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (2)
243routeParameters.Add(routeParameter.Name!, CreateRouteInfo(routeParameter)); 407currentSegment += "{" + part.Name + "}";
Microsoft.AspNetCore.Mvc.Core (1)
Routing\AttributeRoute.cs (1)
211if (string.Equals(kvp.Key, parameter.Name, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Routing (15)
RouteBase.cs (5)
223constraintBuilder.SetOptional(parameter.Name!); 228constraintBuilder.AddResolvedConstraint(parameter.Name!, inlineConstraint.Constraint); 258if (result.ContainsKey(parameter.Name!)) 262parameter.Name)); 266result.Add(parameter.Name!, parameter.DefaultValue);
Template\RouteTemplate.cs (1)
123if (string.Equals(parameter.Name, name, StringComparison.OrdinalIgnoreCase))
Template\TemplateMatcher.cs (1)
53if (Defaults.TryGetValue(part.Name!, out var value))
Template\TemplatePart.cs (2)
143return "{" + (IsCatchAll ? "*" : string.Empty) + Name + (IsOptional ? "?" : string.Empty) + "}"; 174return RoutePatternFactory.ParameterPart(Name!, DefaultValue, kind, constraints);
Tree\TreeRouteBuilder.cs (6)
122constraintBuilder.SetOptional(parameter.Name); 126constraintBuilder.AddResolvedConstraint(parameter.Name, constraint.Constraint); 152entry.Defaults.Add(parameter.Name, parameter.DefaultValue); 207constraintBuilder.SetOptional(parameter.Name); 212constraintBuilder.AddResolvedConstraint(parameter.Name, constraint.Constraint); 224entry.Defaults.Add(parameter.Name, parameter.DefaultValue);
Microsoft.AspNetCore.Routing.Tests (71)
InlineRouteParameterParserTests.cs (67)
22Assert.Equal(parameterName, templatePart.Name); 34Assert.Equal("param", templatePart.Name); 46Assert.Equal("param", templatePart.Name); 59Assert.Equal("param", templatePart.Name); 72Assert.Equal("param", templatePart.Name); 84Assert.Equal("param", templatePart.Name); 98Assert.Equal("param", templatePart.Name); 112Assert.Equal("param", templatePart.Name); 126Assert.Equal("param", templatePart.Name); 141Assert.Equal("param", templatePart.Name); 156Assert.Equal("param", templatePart.Name); 170Assert.Equal("param", templatePart.Name); 186Assert.Equal("param", templatePart.Name); 200Assert.Equal("param", templatePart.Name); 216Assert.Equal("param", templatePart.Name); 230Assert.Equal("param", templatePart.Name); 246Assert.Equal("param", templatePart.Name); 266Assert.Equal("comparison-operator", templatePart.Name); 283Assert.Equal("p1", param1.Name); 293Assert.Equal("p2", param2.Name); 298Assert.Equal("p3", param3.Name); 309Assert.Equal("world", templatePart.Name); 319Assert.Equal("param", templatePart.Name); 330Assert.Equal("param", templatePart.Name); 343Assert.Equal("param", templatePart.Name); 358Assert.Equal("param", templatePart.Name); 371Assert.Equal("param", templatePart.Name); 386Assert.Equal("param", templatePart.Name); 399Assert.Equal("param", templatePart.Name); 414Assert.Equal("param", templatePart.Name); 427Assert.Equal(":param", templatePart.Name); 442Assert.Equal(":param", templatePart.Name); 458Assert.Equal(":param", templatePart.Name); 472Assert.Equal("param", templatePart.Name); 485Assert.Equal("par,am", templatePart.Name); 498Assert.Equal("param", templatePart.Name); 513Assert.Equal("param", templatePart.Name); 529Assert.Equal("param", templatePart.Name); 543Assert.Equal("param", templatePart.Name); 554Assert.Equal("param", templatePart.Name); 568Assert.Equal("param", templatePart.Name); 582Assert.Equal("par", templatePart.Name); 593Assert.Equal("param", templatePart.Name); 604Assert.Equal("par", templatePart.Name); 615Assert.Equal("par", templatePart.Name); 626Assert.Equal("param", templatePart.Name); 640Assert.Equal("param", templatePart.Name); 653Assert.Equal("par{am", templatePart.Name); 666Assert.Equal("param", templatePart.Name); 681Assert.Equal("par(am", templatePart.Name); 694Assert.Equal("param", templatePart.Name); 707Assert.Equal("param", templatePart.Name); 720Assert.Equal("param", templatePart.Name); 734Assert.Equal("param", templatePart.Name); 750Assert.Equal("param", templatePart.Name); 764Assert.Equal("param", templatePart.Name); 779Assert.Equal("param", templatePart.Name); 794Assert.Equal("param", templatePart.Name); 809Assert.Equal("param", templatePart.Name); 824Assert.Equal("param", templatePart.Name); 839Assert.Equal("par?am", templatePart.Name); 854Assert.Equal("param", templatePart.Name); 870Assert.Equal("param", templatePart.Name); 885Assert.Equal("foo", templatePart.Name); 900Assert.Equal("p1", templatePart.Name); 915Assert.Equal("p1", templatePart.Name); 939Assert.Equal(expectedParameterName, templatePart.Name);
Template\TemplateParserTests.cs (4)
872!String.Equals(x.Name, y.Name, StringComparison.Ordinal) || 873!String.Equals(x.Name, y.Name, StringComparison.Ordinal) ||
Swaggatherer (1)
SwaggathererApplication.cs (1)
257var length = Math.Min(text.Length, Math.Max(5, part.Name.Length));