4 writes to _count
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\SegmentedHashSet`1.cs (4)
169
_count
= source._count;
206
_count
= 0;
981
_count
= capacity;
1101
_count
= count + 1;
21 references to _count
Microsoft.CodeAnalysis (21)
src\Dependencies\Collections\SegmentedHashSet`1.cs (21)
129
if (
_count
> 0 && _entries.Length /
_count
> ShrinkThreshold)
169
_count = source.
_count
;
177
for (var i = 0; i < source.
_count
; i++)
199
var count =
_count
;
356
public int Count =>
_count
- _freeCount;
820
for (var i = 0; i <
_count
&& count != 0; i++)
841
for (var i = 0; i <
_count
; i++)
895
private void Resize() => Resize(HashHelpers.ExpandPrime(
_count
));
902
var count =
_count
;
962
var oldCount =
_count
;
1094
var count =
_count
;
1148
for (var i = 0; i <
_count
; i++)
1174
var originalCount =
_count
;
1242
var originalCount =
_count
;
1315
if (
_count
== 0)
1327
Debug.Assert((_buckets.Length > 0) && (
_count
> 0), "_buckets was empty but count greater than 0");
1329
var originalCount =
_count
;
1410
while ((uint)_index < (uint)_hashSet.
_count
)
1420
_index = _hashSet.
_count
+ 1;
1433
if (_index == 0 || (_index == _hashSet.
_count
+ 1))