7 writes to _count
System.Net.Http (7)
System\Net\Http\Headers\HttpHeaders.cs (7)
566_count = sourceHeaders._count; 1451_count++; 1462_count++; 1510_count++; 1526_count++; 1549_count = 0; 1581_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 ? 338Debug.Assert(_count != 0 && entries is not null, "Caller should have validated the collection is not empty"); 340for (int i = 0; i < _count; i++) 563if (_count == 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries) 566_count = sourceHeaders._count; 567if (_headerStore is not HeaderEntry[] entries || entries.Length < _count) 573for (int i = 0; i < _count && i < sourceEntries.Length; i++) 1406return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count); 1409internal int Count => _count; 1420for (int i = 0; i < _count && i < entries.Length; i++) 1442for (int i = 0; i < _count && i < entries.Length; i++) 1450int count = _count; 1500Debug.Assert(dictionary.Count == _count - 1); 1522int count = _count; 1543Array.Clear(entries, 0, _count); 1559for (int i = 0; i < _count && i < entries.Length; i++) 1563while (i + 1 < _count && (uint)(i + 1) < (uint)entries.Length)