1 write to Name
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Patterns\RoutePatternParameterPart.cs (1)
39Name = parameterName;
38 references to Name
Microsoft.AspNetCore.Components (36)
Routing\RouteTable.cs (10)
106if (!routeValues.TryGetValue(parameter.Name, out var parameterValue)) 108routeValues.Add(parameter.Name, null); 120routeValues[parameter.Name] = bool.Parse((string)parameterValue!); 123routeValues[parameter.Name] = DateTime.Parse((string)parameterValue!, CultureInfo.InvariantCulture); 126routeValues[parameter.Name] = decimal.Parse((string)parameterValue!, CultureInfo.InvariantCulture); 129routeValues[parameter.Name] = double.Parse((string)parameterValue!, CultureInfo.InvariantCulture); 132routeValues[parameter.Name] = float.Parse((string)parameterValue!, CultureInfo.InvariantCulture); 135routeValues[parameter.Name] = Guid.Parse((string)parameterValue!, CultureInfo.InvariantCulture); 138routeValues[parameter.Name] = int.Parse((string)parameterValue!, CultureInfo.InvariantCulture); 141routeValues[parameter.Name] = long.Parse((string)parameterValue!, CultureInfo.InvariantCulture);
Routing\RouteTableFactory.cs (1)
229parameterNames.Add(parameter.Name!);
src\Http\Routing\src\Patterns\RoutePattern.cs (1)
148if (string.Equals(parameter.Name, name, StringComparison.OrdinalIgnoreCase))
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (7)
506if (string.Equals(kvp.Key, parameters[i].Name, StringComparison.OrdinalIgnoreCase)) 581if (updatedDefaults != null && updatedDefaults.TryGetValue(parameter.Name, out var newDefault)) 585var message = Resources.FormatTemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly(parameter.Name); 605updatedDefaults[parameter.Name] = parameter.Default; 609if ((parameterPolicyReferences == null || !parameterPolicyReferences.TryGetValue(parameter.Name, out parameterConstraints)) && 618parameterPolicyReferences.Add(parameter.Name, parameterConstraints); 635parameter.Name,
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (8)
51if (Defaults.TryGetValue(parameter.Name, out var value)) 179if (defaultValue != null || !values.ContainsKey(parameter.Name)) 181values[parameter.Name] = defaultValue; 255values[parameter.Name] = captured; 260values[parameter.Name] = _defaultValues[index]; 273values[parameter.Name] = requestSegment.ToString(); 279values[parameter.Name] = _defaultValues[index]; 474outValues.Add(parameterNeedsValue.Name, new string(parameterValueSpan));
src\Http\Routing\src\Patterns\RoutePatternParameterPart.cs (1)
97builder.Append(Name);
src\Http\Routing\src\Patterns\RoutePatternParser.cs (4)
233var parameterName = templatePart.Name; 372parameter.Name, 385parameter.Name, 401parameter.Name,
src\Http\Routing\src\Template\RoutePrecedence.cs (1)
266if (routePattern.RequiredValues.TryGetValue(parameterPart.Name, out var requiredValue) &&
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (3)
134constraintBuilder.SetOptional(parameter.Name); 138constraintBuilder.AddResolvedConstraint(parameter.Name, policy.Content); 160entry.Defaults.Add(parameter.Name, parameter.Default);
Microsoft.AspNetCore.Components.Tests (2)
Routing\TemplateParserTests.cs (2)
311string.Equals(xParameterPart.Name, yParameterPart.Name, StringComparison.OrdinalIgnoreCase) &&