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)
331public IEnumerator<KeyValuePair<string, IEnumerable<string>>> GetEnumerator() => _count == 0 ? 340Debug.Assert(_count != 0 && entries is not null, "Caller should have validated the collection is not empty"); 342for (int i = 0; i < _count; i++) 562if (_count == 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries) 565_count = sourceHeaders._count; 566if (_headerStore is not HeaderEntry[] entries || entries.Length < _count) 572for (int i = 0; i < _count && i < sourceEntries.Length; i++) 1405return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count); 1408internal int Count => _count; 1419for (int i = 0; i < _count && i < entries.Length; i++) 1441for (int i = 0; i < _count && i < entries.Length; i++) 1449int count = _count; 1499Debug.Assert(dictionary.Count == _count - 1); 1521int count = _count; 1542Array.Clear(entries, 0, _count); 1558for (int i = 0; i < _count && i < entries.Length; i++) 1562while (i + 1 < _count && (uint)(i + 1) < (uint)entries.Length)