5 writes to _count
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (5)
167
_count
= source._count;
197
_count
= 0;
505
set.
_count
= count + 1;
1352
_count
= newCount;
1515
_count
= count + 1;
22 references to _count
System.Private.CoreLib (22)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (22)
114
if (
_count
> 0 && _entries!.Length /
_count
> ShrinkThreshold)
167
_count = source.
_count
;
175
CopyEntries(source._entries!, source.
_count
);
190
int count =
_count
;
348
public int Count =>
_count
- _freeCount;
498
int count = set.
_count
;
1195
for (int i = 0; i <
_count
&& count != 0; i++)
1216
for (int i = 0; i <
_count
; i++)
1283
private void Resize() => Resize(HashHelpers.ExpandPrime(
_count
), forceNewHashCodes: false);
1295
int count =
_count
;
1395
CopyEntries(oldEntries,
_count
);
1508
int count =
_count
;
1572
for (int i = 0; i <
_count
; i++)
1598
int originalCount =
_count
;
1666
int originalCount =
_count
;
1740
if (
_count
== 0)
1752
Debug.Assert((_buckets != null) && (
_count
> 0), "_buckets was null but count greater than 0");
1754
int originalCount =
_count
;
1841
while ((uint)_index < (uint)_hashSet.
_count
)
1851
_index = _hashSet.
_count
+ 1;
1864
if (_index == 0 || (_index == _hashSet.
_count
+ 1))