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