7 writes to _count
System.Net.Http (7)
System\Net\Http\Headers\HttpHeaders.cs (7)
649_count = sourceHeaders._count; 1531_count++; 1542_count++; 1589_count++; 1605_count++; 1628_count = 0; 1660_count--;
17 references to _count
System.Net.Http (17)
System\Net\Http\Headers\HttpHeaders.cs (17)
388public IEnumerator<KeyValuePair<string, IEnumerable<string>>> GetEnumerator() => _count == 0 ? 397Debug.Assert(_count != 0 && entries is not null, "Caller should have validated the collection is not empty"); 399for (int i = 0; i < _count; i++) 646if (_count == 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries) 649_count = sourceHeaders._count; 650if (_headerStore is not HeaderEntry[] entries || entries.Length < _count) 656for (int i = 0; i < _count && i < sourceEntries.Length; i++) 1486return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count); 1489internal int Count => _count; 1500for (int i = 0; i < _count && i < entries.Length; i++) 1522for (int i = 0; i < _count && i < entries.Length; i++) 1530int count = _count; 1579Debug.Assert(dictionary.Count == _count - 1); 1601int count = _count; 1622Array.Clear(entries, 0, _count); 1638for (int i = 0; i < _count && i < entries.Length; i++) 1642while (i + 1 < _count && (uint)(i + 1) < (uint)entries.Length)