7 writes to _count
System.Net.Http (7)
System\Net\Http\Headers\HttpHeaders.cs (7)
565
_count
= sourceHeaders._count;
1450
_count
++;
1461
_count
++;
1509
_count
++;
1525
_count
++;
1548
_count
= 0;
1580
_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 ?
340
Debug.Assert(
_count
!= 0 && entries is not null, "Caller should have validated the collection is not empty");
342
for (int i = 0; i <
_count
; i++)
562
if (
_count
== 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries)
565
_count = sourceHeaders.
_count
;
566
if (_headerStore is not HeaderEntry[] entries || entries.Length <
_count
)
572
for (int i = 0; i <
_count
&& i < sourceEntries.Length; i++)
1405
return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0,
_count
);
1408
internal int Count =>
_count
;
1419
for (int i = 0; i <
_count
&& i < entries.Length; i++)
1441
for (int i = 0; i <
_count
&& i < entries.Length; i++)
1449
int count =
_count
;
1499
Debug.Assert(dictionary.Count ==
_count
- 1);
1521
int count =
_count
;
1542
Array.Clear(entries, 0,
_count
);
1558
for (int i = 0; i <
_count
&& i < entries.Length; i++)
1562
while (i + 1 <
_count
&& (uint)(i + 1) < (uint)entries.Length)