7 writes to _count
System.Net.Http (7)
System\Net\Http\Headers\HttpHeaders.cs (7)
573_count = sourceHeaders._count; 1458_count++; 1469_count++; 1517_count++; 1533_count++; 1556_count = 0; 1588_count--;
17 references to _count
System.Net.Http (17)
System\Net\Http\Headers\HttpHeaders.cs (17)
339public IEnumerator<KeyValuePair<string, IEnumerable<string>>> GetEnumerator() => _count == 0 ? 348Debug.Assert(_count != 0 && entries is not null, "Caller should have validated the collection is not empty"); 350for (int i = 0; i < _count; i++) 570if (_count == 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries) 573_count = sourceHeaders._count; 574if (_headerStore is not HeaderEntry[] entries || entries.Length < _count) 580for (int i = 0; i < _count && i < sourceEntries.Length; i++) 1413return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count); 1416internal int Count => _count; 1427for (int i = 0; i < _count && i < entries.Length; i++) 1449for (int i = 0; i < _count && i < entries.Length; i++) 1457int count = _count; 1507Debug.Assert(dictionary.Count == _count - 1); 1529int count = _count; 1550Array.Clear(entries, 0, _count); 1566for (int i = 0; i < _count && i < entries.Length; i++) 1570while (i + 1 < _count && (uint)(i + 1) < (uint)entries.Length)