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)
42public List<KeyValuePair<string, T>> List => _propertyList; 89_propertyList.Clear(); 107return _propertyList.Count; 146foreach (KeyValuePair<string, T> item in _propertyList) 157public List<KeyValuePair<string, T>>.Enumerator GetEnumerator() => _propertyList.GetEnumerator(); 176foreach (KeyValuePair<string, T> item in _propertyList) 234_propertyList.Add(new KeyValuePair<string, T>(propertyName, value)); 256KeyValuePair<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)); 318if (_propertyDictionary == null && _propertyList.Count > ListToDictionaryThreshold) 320_propertyDictionary = JsonHelpers.CreateDictionaryFromCollection(_propertyList, _stringComparer); 357foreach (KeyValuePair<string, T> item in _propertyList) 370for (int i = 0; i < _propertyList.Count; i++) 372KeyValuePair<string, T> current = _propertyList[i]; 402for (int i = 0; i < _propertyList.Count; i++) 404KeyValuePair<string, T> current = _propertyList[i]; 408_propertyList.RemoveAt(i);