2 writes to _propertyList
System.Text.Json (2)
System\Text\Json\JsonPropertyDictionary.cs (2)
26
_propertyList
= new List<KeyValuePair<string, T>>();
38
_propertyList
= new(capacity);
19 references to _propertyList
System.Text.Json (19)
System\Text\Json\JsonPropertyDictionary.cs (19)
42
public List<KeyValuePair<string, T>> List =>
_propertyList
;
89
_propertyList
.Clear();
107
return
_propertyList
.Count;
146
foreach (KeyValuePair<string, T> item in
_propertyList
)
157
public List<KeyValuePair<string, T>>.Enumerator GetEnumerator() =>
_propertyList
.GetEnumerator();
176
foreach (KeyValuePair<string, T> item in
_propertyList
)
234
_propertyList
.Add(new KeyValuePair<string, T>(propertyName, value));
256
KeyValuePair<string, T> current =
_propertyList
[i];
267
_propertyList
[i] = new KeyValuePair<string, T>(propertyName, value);
272
_propertyList
.Add(new KeyValuePair<string, T>(propertyName, value));
312
_propertyList
.Add(new KeyValuePair<string, T>(propertyName, value));
318
if (_propertyDictionary == null &&
_propertyList
.Count > ListToDictionaryThreshold)
320
_propertyDictionary = JsonHelpers.CreateDictionaryFromCollection(
_propertyList
, _stringComparer);
357
foreach (KeyValuePair<string, T> item in
_propertyList
)
370
for (int i = 0; i <
_propertyList
.Count; i++)
372
KeyValuePair<string, T> current =
_propertyList
[i];
402
for (int i = 0; i <
_propertyList
.Count; i++)
404
KeyValuePair<string, T> current =
_propertyList
[i];
408
_propertyList
.RemoveAt(i);