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)
32
if (
_items
!= null &&
_items
.TryGetValue(key, out var value))
41
_items
[key] = value;
48
_items
.Add(key, value);
52
=>
_items
!= null &&
_items
.ContainsKey(key);
58
if (
_items
== null)
63
return
_items
.Keys;
68
=>
_items
!= null &&
_items
.Remove(key);
73
return
_items
!= null &&
_items
.TryGetValue(key, out value);
80
if (
_items
== null)
85
return
_items
.Values;
92
_items
.Add(item);
95
void ICollection<KeyValuePair<object, object?>>.Clear() =>
_items
?.Clear();
98
=>
_items
!= null &&
_items
.Contains(item);
102
if (
_items
== null)
108
_items
?.CopyTo(array, arrayIndex);
111
int ICollection<KeyValuePair<object, object?>>.Count =>
_items
?.Count ?? 0;
113
bool ICollection<KeyValuePair<object, object?>>.IsReadOnly =>
_items
?.IsReadOnly ?? false;
117
if (
_items
== null)
122
if (
_items
.TryGetValue(item.Key, out var value) && Equals(item.Value, value))
124
return
_items
.Remove(item.Key);
129
[MemberNotNull(nameof(
_items
))]
132
if (
_items
== null)
139
=>
_items
?.GetEnumerator() ?? EmptyEnumerator.Instance;
141
IEnumerator IEnumerable.GetEnumerator() =>
_items
?.GetEnumerator() ?? EmptyEnumerator.Instance;