7 writes to _count
Microsoft.AspNetCore.Http (7)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (7)
130
_arrayStorage[
_count
++] = new KeyValuePair<TKey, TValue>(key, value);
240
_count
++;
259
_count
= 0;
360
_count
--;
389
_count
--;
429
_count
--;
473
_count
++;
23 references to _count
Microsoft.AspNetCore.Http (23)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (23)
124
EnsureCapacity(
_count
+ 1);
144
public int Count => _dictionaryStorage != null ? _dictionaryStorage.Count :
_count
;
162
var keys = new TKey[
_count
];
187
var values = new TValue[
_count
];
225
EnsureCapacity(
_count
+ 1);
239
_arrayStorage[
_count
] = new KeyValuePair<TKey, TValue>(key, value);
252
if (
_count
== 0)
258
Array.Clear(_arrayStorage, 0,
_count
);
310
Array.Copy(storage, 0, array, arrayIndex,
_count
);
359
Array.Copy(array, index + 1, array, index,
_count
- index);
361
array[
_count
] = default;
391
Array.Copy(array, index + 1, array, index,
_count
- index);
392
array[
_count
] = default;
420
if (
_count
== 0)
432
Array.Copy(array, index + 1, array, index,
_count
- index);
433
array[
_count
] = default;
532
if (
_count
> 0)
534
Array.Copy(_arrayStorage, 0, array, 0,
_count
);
546
Debug.Assert(
_count
<= _arrayStorage.Length);
549
return MemoryMarshal.CreateSpan(ref r,
_count
);
559
if (
_count
> 0)
579
if (
_count
> 0)
649
if (dictionary.
_count
<= _index)