26 references to Dictionary
System.Text.Json (26)
System\Text\Json\Nodes\JsonObject.cs (6)
156return Dictionary.TryGetValue(propertyName, out jsonNode, out index); 176foreach (KeyValuePair<string, JsonNode?> entry in Dictionary) 206OrderedDictionary<string, JsonNode?> currentDict = Dictionary; 207OrderedDictionary<string, JsonNode?> otherDict = jsonObject.Dictionary; 267OrderedDictionary<string, JsonNode?> dict = Dictionary; 307foreach (KeyValuePair<string, JsonNode?> item in Dictionary)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (12)
30Dictionary.Add(propertyName, value); 65bool success = Dictionary.TryAdd(propertyName, value, out index); 123return Dictionary.ContainsKey(propertyName); 129public int Count => Dictionary.Count; 145bool success = Dictionary.Remove(propertyName, out JsonNode? removedNode); 162((IDictionary<string, JsonNode?>)Dictionary).Contains(item); 182((IDictionary<string, JsonNode?>)Dictionary).CopyTo(array, index); 190public IEnumerator<KeyValuePair<string, JsonNode?>> GetEnumerator() => Dictionary.GetEnumerator(); 206ICollection<string> IDictionary<string, JsonNode?>.Keys => Dictionary.Keys; 211ICollection<JsonNode?> IDictionary<string, JsonNode?>.Values => Dictionary.Values; 231return Dictionary.TryGetValue(propertyName, out jsonNode); 245IEnumerator IEnumerable.GetEnumerator() => Dictionary.GetEnumerator();
System\Text\Json\Nodes\JsonObject.IList.cs (8)
15public KeyValuePair<string, JsonNode?> GetAt(int index) => Dictionary.GetAt(index); 28OrderedDictionary<string, JsonNode?> dictionary = Dictionary; 42OrderedDictionary<string, JsonNode?> dictionary = Dictionary; 57return Dictionary.IndexOf(propertyName); 71Dictionary.Insert(index, propertyName, value); 80KeyValuePair<string, JsonNode?> existing = Dictionary.GetAt(index); 81Dictionary.RemoveAt(index); 93int IList<KeyValuePair<string, JsonNode?>>.IndexOf(KeyValuePair<string, JsonNode?> item) => ((IList<KeyValuePair<string, JsonNode?>>)Dictionary).IndexOf(item);