7 writes to _count
System.Net.Http (7)
System\Net\Http\Headers\HttpHeaders.cs (7)
566
_count
= sourceHeaders._count;
1451
_count
++;
1462
_count
++;
1510
_count
++;
1526
_count
++;
1549
_count
= 0;
1581
_count
--;
17 references to _count
System.Net.Http (17)
System\Net\Http\Headers\HttpHeaders.cs (17)
331
public IEnumerator<KeyValuePair<string, IEnumerable<string>>> GetEnumerator() =>
_count
== 0 ?
338
Debug.Assert(
_count
!= 0 && entries is not null, "Caller should have validated the collection is not empty");
340
for (int i = 0; i <
_count
; i++)
563
if (
_count
== 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries)
566
_count = sourceHeaders.
_count
;
567
if (_headerStore is not HeaderEntry[] entries || entries.Length <
_count
)
573
for (int i = 0; i <
_count
&& i < sourceEntries.Length; i++)
1406
return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0,
_count
);
1409
internal int Count =>
_count
;
1420
for (int i = 0; i <
_count
&& i < entries.Length; i++)
1442
for (int i = 0; i <
_count
&& i < entries.Length; i++)
1450
int count =
_count
;
1500
Debug.Assert(dictionary.Count ==
_count
- 1);
1522
int count =
_count
;
1543
Array.Clear(entries, 0,
_count
);
1559
for (int i = 0; i <
_count
&& i < entries.Length; i++)
1563
while (i + 1 <
_count
&& (uint)(i + 1) < (uint)entries.Length)