2 writes to _items
Microsoft.AspNetCore.Http (2)
Internal\ItemsDictionary.cs (2)
22_items = items; 134_items = new Dictionary<object, object?>();
29 references to _items
Microsoft.AspNetCore.Http (29)
Internal\ItemsDictionary.cs (29)
32if (_items != null && _items.TryGetValue(key, out var value)) 41_items[key] = value; 48_items.Add(key, value); 52=> _items != null && _items.ContainsKey(key); 58if (_items == null) 63return _items.Keys; 68=> _items != null && _items.Remove(key); 73return _items != null && _items.TryGetValue(key, out value); 80if (_items == null) 85return _items.Values; 92_items.Add(item); 95void ICollection<KeyValuePair<object, object?>>.Clear() => _items?.Clear(); 98=> _items != null && _items.Contains(item); 102if (_items == null) 108_items?.CopyTo(array, arrayIndex); 111int ICollection<KeyValuePair<object, object?>>.Count => _items?.Count ?? 0; 113bool ICollection<KeyValuePair<object, object?>>.IsReadOnly => _items?.IsReadOnly ?? false; 117if (_items == null) 122if (_items.TryGetValue(item.Key, out var value) && Equals(item.Value, value)) 124return _items.Remove(item.Key); 129[MemberNotNull(nameof(_items))] 132if (_items == null) 139=> _items?.GetEnumerator() ?? EmptyEnumerator.Instance; 141IEnumerator IEnumerable.GetEnumerator() => _items?.GetEnumerator() ?? EmptyEnumerator.Instance;