7 writes to _count
System.Net.Http (7)
System\Net\Http\Headers\HttpHeaders.cs (7)
645_count = sourceHeaders._count; 1527_count++; 1538_count++; 1585_count++; 1601_count++; 1624_count = 0; 1656_count--;
17 references to _count
System.Net.Http (17)
System\Net\Http\Headers\HttpHeaders.cs (17)
386public IEnumerator<KeyValuePair<string, IEnumerable<string>>> GetEnumerator() => _count == 0 ? 395Debug.Assert(_count != 0 && entries is not null, "Caller should have validated the collection is not empty"); 397for (int i = 0; i < _count; i++) 642if (_count == 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries) 645_count = sourceHeaders._count; 646if (_headerStore is not HeaderEntry[] entries || entries.Length < _count) 652for (int i = 0; i < _count && i < sourceEntries.Length; i++) 1482return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count); 1485internal int Count => _count; 1496for (int i = 0; i < _count && i < entries.Length; i++) 1518for (int i = 0; i < _count && i < entries.Length; i++) 1526int count = _count; 1575Debug.Assert(dictionary.Count == _count - 1); 1597int count = _count; 1618Array.Clear(entries, 0, _count); 1634for (int i = 0; i < _count && i < entries.Length; i++) 1638while (i + 1 < _count && (uint)(i + 1) < (uint)entries.Length)