Implemented interface members:
18 references to Count
Microsoft.AspNetCore.Http.Abstractions (8)
Routing\RouteValueDictionary.cs (8)
447if (arrayIndex < 0 || arrayIndex > array.Length || array.Length - arrayIndex < Count) 452if (Count == 0) 457EnsureCapacity(Count); 484if (Count == 0) 491EnsureCapacity(Count); 514if (Count == 0) 596EnsureCapacity(Count + 1); 597_arrayStorage[Count] = new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ControllerRequestDelegateFactory.cs (1)
78if (dataTokens is null or { Count: 0 })
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageRequestDelegateFactory.cs (1)
90if (dataTokens is null or { Count: 0 })
Microsoft.AspNetCore.Routing (6)
Patterns\RoutePatternFactory.cs (4)
459if (defaults != null && defaults.Count > 0) 461updatedDefaults = new Dictionary<string, object?>(defaults.Count, StringComparer.OrdinalIgnoreCase); 651if (parameterPolicies != null && parameterPolicies.Count > 0) 653updatedParameterPolicies = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(parameterPolicies.Count, StringComparer.OrdinalIgnoreCase);
RouteBase.cs (1)
123if (DataTokens.Count > 0)
Template\TemplateBinder.cs (1)
385if (valueProcessedCount < values.Count)
Microsoft.AspNetCore.Routing.Abstractions (2)
RouteData.cs (2)
157_dataTokens?.Count > 0 ? new RouteValueDictionary(_dataTokens) : null, 159_values?.Count > 0 ? new RouteValueDictionary(_values) : null);