3 writes to _dictionary
Microsoft.Extensions.AI.Abstractions (3)
AdditionalPropertiesDictionary{TValue}.cs (3)
33_dictionary = new(StringComparer.OrdinalIgnoreCase); 39_dictionary = new(dictionary, StringComparer.OrdinalIgnoreCase); 46_dictionary = new(collection, StringComparer.OrdinalIgnoreCase);
21 references to _dictionary
Microsoft.Extensions.AI.Abstractions (21)
AdditionalPropertiesDictionary{TValue}.cs (21)
61public AdditionalPropertiesDictionary<TValue> Clone() => new(_dictionary); 66get => _dictionary[key]; 67set => _dictionary[key] = value; 71public ICollection<string> Keys => _dictionary.Keys; 74public ICollection<TValue> Values => _dictionary.Values; 77public int Count => _dictionary.Count; 83IEnumerable<string> IReadOnlyDictionary<string, TValue>.Keys => _dictionary.Keys; 86IEnumerable<TValue> IReadOnlyDictionary<string, TValue>.Values => _dictionary.Values; 89public void Add(string key, TValue value) => _dictionary.Add(key, value); 98return _dictionary.TryAdd(key, value); 111void ICollection<KeyValuePair<string, TValue>>.Add(KeyValuePair<string, TValue> item) => ((ICollection<KeyValuePair<string, TValue>>)_dictionary).Add(item); 114public void Clear() => _dictionary.Clear(); 118((ICollection<KeyValuePair<string, TValue>>)_dictionary).Contains(item); 121public bool ContainsKey(string key) => _dictionary.ContainsKey(key); 125((ICollection<KeyValuePair<string, TValue>>)_dictionary).CopyTo(array, arrayIndex); 131public Enumerator GetEnumerator() => new(_dictionary.GetEnumerator()); 140public bool Remove(string key) => _dictionary.Remove(key); 143bool ICollection<KeyValuePair<string, TValue>>.Remove(KeyValuePair<string, TValue> item) => ((ICollection<KeyValuePair<string, TValue>>)_dictionary).Remove(item); 196public bool TryGetValue(string key, [MaybeNullWhen(false)] out TValue value) => _dictionary.TryGetValue(key, out value); 199bool IDictionary<string, TValue>.TryGetValue(string key, out TValue value) => _dictionary.TryGetValue(key, out value!); 202bool IReadOnlyDictionary<string, TValue>.TryGetValue(string key, out TValue value) => _dictionary.TryGetValue(key, out value!);