Implemented interface members:
49 references to TryGetValue
Microsoft.AspNetCore.Http.Abstractions (2)
Routing\RouteValueDictionary.cs (2)
272
TryGetValue
(key, out var value);
411
return
TryGetValue
(item.Key, out var value) && EqualityComparer<object>.Default.Equals(value, item.Value);
Microsoft.AspNetCore.Mvc.Core (10)
Formatters\FormatFilter.cs (1)
39
if (context.RouteData.Values.
TryGetValue
("format", out var obj))
Infrastructure\ActionSelectionTable.cs (1)
170
values.
TryGetValue
(routeKeys[i], out var value);
ModelBinding\RouteValueProvider.cs (1)
90
if (_values.
TryGetValue
(key, out var value))
Routing\EndpointRoutingUrlHelper.cs (2)
45
AmbientValues.
TryGetValue
("action", out var action))
58
AmbientValues.
TryGetValue
("controller", out var controller))
Routing\KnownRouteValueConstraint.cs (1)
44
if (values.
TryGetValue
(routeKey, out var obj))
Routing\NormalizedRouteValue.cs (1)
27
if (!context.RouteData.Values.
TryGetValue
(key, out var routeValue))
Routing\UrlHelperBase.cs (3)
235
(ambientValues?.
TryGetValue
("action", out obj) ?? false))
248
(ambientValues?.
TryGetValue
("controller", out obj) ?? false))
270
(ambientValues?.
TryGetValue
("page", out value) ?? false))
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
PartialViewResultExecutor.cs (1)
168
if (!context.RouteData.Values.
TryGetValue
(ActionNameKey, out var routeValue))
ViewResultExecutor.cs (1)
168
if (!context.RouteData.Values.
TryGetValue
(ActionNameKey, out var routeValue))
Microsoft.AspNetCore.Routing (35)
Constraints\BoolRouteConstraint.cs (1)
39
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\DateTimeRouteConstraint.cs (1)
45
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\DecimalRouteConstraint.cs (1)
39
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\DoubleRouteConstraint.cs (1)
39
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\FileNameRouteConstraint.cs (1)
110
if (values.
TryGetValue
(routeKey, out var obj) && obj != null)
Constraints\FloatRouteConstraint.cs (1)
39
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\GuidRouteConstraint.cs (1)
41
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\HttpMethodRouteConstraint.cs (1)
65
if (!values.
TryGetValue
(routeKey, out var obj))
Constraints\IntRouteConstraint.cs (1)
39
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\LengthRouteConstraint.cs (1)
95
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\LongRouteConstraint.cs (1)
39
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\MaxLengthRouteConstraint.cs (1)
59
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\MaxRouteConstraint.cs (1)
55
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\MinLengthRouteConstraint.cs (1)
59
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\MinRouteConstraint.cs (1)
53
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\NonFileNameRouteConstraint.cs (1)
106
if (values.
TryGetValue
(routeKey, out var obj) && obj != null)
Constraints\OptionalRouteConstraint.cs (1)
53
if (values.
TryGetValue
(routeKey, out _))
Constraints\RangeRouteConstraint.cs (1)
67
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\RegexRouteConstraint.cs (1)
94
if (values.
TryGetValue
(routeKey, out var routeValue)
Constraints\RequiredRouteConstraint.cs (1)
29
if (values.
TryGetValue
(routeKey, out var value) && value != null)
Constraints\StringRouteConstraint.cs (1)
34
if (values.
TryGetValue
(routeKey, out var routeValue)
Matching\DfaMatcherBuilder.cs (1)
392
if (!routeValues.
TryGetValue
(partParameter.Name, out var parameterValue))
Patterns\RoutePatternMatcher.cs (1)
51
if (Defaults.
TryGetValue
(parameter.Name, out var value))
RouteConstraintMatcher.cs (1)
73
routeValues.
TryGetValue
(kvp.Key, out var routeValue);
Template\TemplateBinder.cs (8)
177
if (values.
TryGetValue
(key, out var value))
210
var hasExplicitValue = values.
TryGetValue
(key, out var value);
212
if (ambientValues == null || !ambientValues.
TryGetValue
(key, out var ambientValue))
273
hasAmbientValue = ambientValues != null && ambientValues.
TryGetValue
(key, out ambientValue);
313
hasAmbientValue = ambientValues != null && ambientValues.
TryGetValue
(key, out ambientValue);
339
else if (_defaults != null && _defaults.
TryGetValue
(parameter.Name, out var defaultValue))
507
if (acceptedValues.
TryGetValue
(parameterName, out var value))
548
_defaults.
TryGetValue
(parameterPart.Name, out var defaultValue) &&
Template\TemplateMatcher.cs (1)
53
if (Defaults.
TryGetValue
(part.Name!, out var value))
Tree\LinkGenerationDecisionTree.cs (2)
132
if (values.
TryGetValue
(key, out var value))
145
if (ambientValues.
TryGetValue
(key, out value) &&