21 references to TryAdd
Microsoft.AspNetCore.Http.Abstractions.Tests (7)
RouteValueDictionaryTests.cs (7)
1773
var result = dict.
TryAdd
("", "foo");
1786
var result = dict.
TryAdd
("otherKey", "value");
1806
var result = dict.
TryAdd
("key", "value");
1824
var result = dict.
TryAdd
("key", "value");
1846
var result = dict.
TryAdd
("key1", "value1");
1871
var result = dict.
TryAdd
("key4", "value4");
1897
var result = dict.
TryAdd
("key0", "value1");
Microsoft.AspNetCore.Http.Microbenchmarks (11)
RouteValueDictionaryBenchmark.cs (11)
90
propertyValues.
TryAdd
("id", "15");
97
_propertyValues.
TryAdd
("name", "Service");
104
propertyValues.
TryAdd
("id", "15");
111
_propertyValues.
TryAdd
("name", "Service");
124
arrayValues.
TryAdd
("id", "15");
137
arrayValues.
TryAdd
("name", "Service");
149
arrayValues.
TryAdd
("id", "15");
161
arrayValues.
TryAdd
("name", "Service");
219
dictionary.
TryAdd
("action", "Index");
220
dictionary.
TryAdd
("controller", "Home");
221
dictionary.
TryAdd
("area", "Admin");
Microsoft.AspNetCore.Mvc.Core (1)
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
140
values.
TryAdd
(kvp.Key, kvp.Value);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
139
values.
TryAdd
(kvp.Key, kvp.Value);
Microsoft.AspNetCore.Routing (1)
Patterns\DefaultRoutePatternTransformer.cs (1)
185
requiredValues.
TryAdd
(kvp.Key, kvp.Value);