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