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