Implemented interface members:
75 references to Count
Microsoft.AspNetCore.Http.Abstractions (8)
Routing\RouteValueDictionary.cs (8)
449
if (arrayIndex < 0 || arrayIndex > array.Length || array.Length - arrayIndex <
Count
)
454
if (
Count
== 0)
459
EnsureCapacity(
Count
);
486
if (
Count
== 0)
493
EnsureCapacity(
Count
);
516
if (
Count
== 0)
598
EnsureCapacity(
Count
+ 1);
599
_arrayStorage[
Count
] = new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.Http.Abstractions.Tests (10)
RouteValueDictionaryTests.cs (10)
690
var count = dict.
Count
;
703
var count = dict.
Count
;
720
var count = dict.
Count
;
1709
Assert.Equal(2, dict.
Count
);
1734
Assert.Equal(2, dict.
Count
);
1759
Assert.Equal(2, dict.
Count
);
2071
Assert.Equal(3, dict.
Count
);
2078
Assert.Equal(2, dict.
Count
);
2102
Assert.Equal(3, dictionary.
Count
);
2139
Assert.Equal(4, dictionary.
Count
);
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ControllerRequestDelegateFactory.cs (1)
72
if (dataTokens is null or {
Count
: 0 })
Microsoft.AspNetCore.Mvc.Core.Test (1)
AcceptedAtActionResultTests.cs (1)
70
Assert.Equal(expectedRouteValuesCount, result.RouteValues.
Count
);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageRequestDelegateFactory.cs (1)
84
if (dataTokens is null or {
Count
: 0 })
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
FormTagHelperTest.cs (1)
471
Assert.Equal(2, routeValueDictionary.
Count
);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
PageRemoteAttributeTest.cs (1)
56
Assert.Equal(2, routeDictionary.
Count
);
RemoteAttributeTest.cs (5)
93
Assert.Equal(2, attribute.RouteData.
Count
);
111
Assert.Equal(2, attribute.RouteData.
Count
);
130
Assert.Equal(3, attribute.RouteData.
Count
);
189
Assert.Equal(2, routeDictionary.
Count
);
210
Assert.Equal(3, routeDictionary.
Count
);
Microsoft.AspNetCore.Routing (6)
Patterns\RoutePatternFactory.cs (4)
459
if (defaults != null && defaults.
Count
> 0)
461
updatedDefaults = new Dictionary<string, object?>(defaults.
Count
, StringComparer.OrdinalIgnoreCase);
651
if (parameterPolicies != null && parameterPolicies.
Count
> 0)
653
updatedParameterPolicies = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(parameterPolicies.
Count
, StringComparer.OrdinalIgnoreCase);
RouteBase.cs (1)
123
if (DataTokens.
Count
> 0)
Template\TemplateBinder.cs (1)
385
if (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);
Microsoft.AspNetCore.Routing.Tests (39)
Matching\MatcherAssert.cs (4)
18
if (expectedValues.
Count
!= actualValues.
Count
||
84
if (values.
Count
!= actualValues.
Count
||
Patterns\RoutePatternMatcherTest.cs (11)
398
Assert.Equal<int>(3, values.
Count
);
419
Assert.Equal<int>(5, values.
Count
);
707
Assert.Equal<int>(2, values.
Count
);
725
Assert.Equal<int>(2, values.
Count
);
743
Assert.Equal<int>(2, values.
Count
);
761
Assert.Equal<int>(2, values.
Count
);
779
Assert.Equal<int>(2, values.
Count
);
797
Assert.Equal<int>(2, values.
Count
);
910
Assert.Equal(2, values.
Count
);
983
Assert.Equal(2, values.
Count
);
1121
Assert.Equal(expected.Count, values.
Count
);
RouteCollectionTest.cs (2)
152
Assert.Equal(expectedDataTokens.
Count
, pathData.DataTokens.
Count
);
RouteTest.cs (10)
391
Assert.Equal(2, context.RouteData.Values.
Count
);
423
Assert.Equal(2, context.RouteData.Values.
Count
);
526
Assert.Equal(3, context.RouteData.Values.
Count
);
544
Assert.Equal(2, context.RouteData.Values.
Count
);
561
Assert.Equal(3, context.RouteData.Values.
Count
);
788
Assert.Equal(expectedDataTokens.
Count
, pathData.DataTokens.
Count
);
827
Assert.Equal(expectedDataTokens.
Count
, pathData.DataTokens.
Count
);
1578
Assert.Equal(expectedDictionary.Count, templateRoute.DataTokens.
Count
);
Template\TemplateBinderTests.cs (1)
723
Assert.Equal(2, templateValuesResult.CombinedValues.
Count
);
Template\TemplateMatcherTests.cs (11)
397
Assert.Equal<int>(3, values.
Count
);
418
Assert.Equal<int>(5, values.
Count
);
706
Assert.Equal<int>(2, values.
Count
);
724
Assert.Equal<int>(2, values.
Count
);
742
Assert.Equal<int>(2, values.
Count
);
760
Assert.Equal<int>(2, values.
Count
);
778
Assert.Equal<int>(2, values.
Count
);
796
Assert.Equal<int>(2, values.
Count
);
909
Assert.Equal(2, values.
Count
);
982
Assert.Equal(2, values.
Count
);
1120
Assert.Equal(expected.Count, values.
Count
);