Implemented interface members:
17 references to Count
Microsoft.AspNetCore.Shared.Tests (17)
AdaptiveCapacityDictionaryTests.cs (11)
58
Assert.Equal(12, dict.
Count
);
263
var count = dict.
Count
;
279
var count = dict.
Count
;
933
Assert.Equal(2, dict.
Count
);
958
Assert.Equal(2, dict.
Count
);
983
Assert.Equal(2, dict.
Count
);
1193
Assert.Equal(11, dict.
Count
);
1223
Assert.Equal(11, dict.
Count
);
1253
Assert.Equal(11, dict.
Count
);
1267
Assert.Equal(3, dict.
Count
);
1274
Assert.Equal(2, dict.
Count
);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (6)
297
if ((uint)arrayIndex > array.Length || array.Length - arrayIndex < this.
Count
)
304
if (
Count
== 0)
350
if (
Count
== 0)
381
if (
Count
== 0)
465
EnsureCapacity(
Count
+ 1);
472
_arrayStorage[
Count
] = new KeyValuePair<TKey, TValue>(key, value);