7 writes to _count
System.Net.Http (7)
System\Net\Http\Headers\HttpHeaders.cs (7)
628_count = sourceHeaders._count; 1510_count++; 1521_count++; 1569_count++; 1585_count++; 1608_count = 0; 1640_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++) 625if (_count == 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries) 628_count = sourceHeaders._count; 629if (_headerStore is not HeaderEntry[] entries || entries.Length < _count) 635for (int i = 0; i < _count && i < sourceEntries.Length; i++) 1465return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count); 1468internal int Count => _count; 1479for (int i = 0; i < _count && i < entries.Length; i++) 1501for (int i = 0; i < _count && i < entries.Length; i++) 1509int count = _count; 1559Debug.Assert(dictionary.Count == _count - 1); 1581int count = _count; 1602Array.Clear(entries, 0, _count); 1618for (int i = 0; i < _count && i < entries.Length; i++) 1622while (i + 1 < _count && (uint)(i + 1) < (uint)entries.Length)