25 references to Dictionary
System.Text.Json (25)
System\Text\Json\Nodes\JsonObject.cs (6)
128return Dictionary.TryGetValue(propertyName, out jsonNode); 150foreach (KeyValuePair<string, JsonNode?> entry in Dictionary) 180OrderedDictionary<string, JsonNode?> currentDict = Dictionary; 181OrderedDictionary<string, JsonNode?> otherDict = jsonObject.Dictionary; 249OrderedDictionary<string, JsonNode?> dict = Dictionary; 289foreach (KeyValuePair<string, JsonNode?> item in Dictionary)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (11)
33Dictionary.Add(propertyName, value); 89return Dictionary.ContainsKey(propertyName); 95public int Count => Dictionary.Count; 114bool success = Dictionary.Remove(propertyName, out JsonNode? removedNode); 131((IDictionary<string, JsonNode?>)Dictionary).Contains(item); 151((IDictionary<string, JsonNode?>)Dictionary).CopyTo(array, index); 159public IEnumerator<KeyValuePair<string, JsonNode?>> GetEnumerator() => Dictionary.GetEnumerator(); 175ICollection<string> IDictionary<string, JsonNode?>.Keys => Dictionary.Keys; 180ICollection<JsonNode?> IDictionary<string, JsonNode?>.Values => Dictionary.Values; 203return Dictionary.TryGetValue(propertyName, out jsonNode); 217IEnumerator IEnumerable.GetEnumerator() => Dictionary.GetEnumerator();
System\Text\Json\Nodes\JsonObject.IList.cs (8)
15public KeyValuePair<string, JsonNode?> GetAt(int index) => Dictionary.GetAt(index); 31OrderedDictionary<string, JsonNode?> dictionary = Dictionary; 45OrderedDictionary<string, JsonNode?> dictionary = Dictionary; 63return Dictionary.IndexOf(propertyName); 80Dictionary.Insert(index, propertyName, value); 89KeyValuePair<string, JsonNode?> existing = Dictionary.GetAt(index); 90Dictionary.RemoveAt(index); 102int IList<KeyValuePair<string, JsonNode?>>.IndexOf(KeyValuePair<string, JsonNode?> item) => ((IList<KeyValuePair<string, JsonNode?>>)Dictionary).IndexOf(item);