3 writes to _dictionary
Microsoft.Extensions.AI.Abstractions (3)
AdditionalPropertiesDictionary{TValue}.cs (3)
30_dictionary = new(StringComparer.OrdinalIgnoreCase); 36_dictionary = new(dictionary, StringComparer.OrdinalIgnoreCase); 45_dictionary = new Dictionary<string, TValue>(StringComparer.OrdinalIgnoreCase);
24 references to _dictionary
Microsoft.Extensions.AI.Abstractions (24)
AdditionalPropertiesDictionary{TValue}.cs (24)
48_dictionary.Add(item.Key, item.Value); 58public AdditionalPropertiesDictionary<TValue> Clone() => new(_dictionary); 63get => _dictionary[key]; 64set => _dictionary[key] = value; 68public ICollection<string> Keys => _dictionary.Keys; 71public ICollection<TValue> Values => _dictionary.Values; 74public int Count => _dictionary.Count; 80IEnumerable<string> IReadOnlyDictionary<string, TValue>.Keys => _dictionary.Keys; 83IEnumerable<TValue> IReadOnlyDictionary<string, TValue>.Values => _dictionary.Values; 86public void Add(string key, TValue value) => _dictionary.Add(key, value); 97if (!_dictionary.ContainsKey(key)) 99_dictionary.Add(key, value); 108void ICollection<KeyValuePair<string, TValue>>.Add(KeyValuePair<string, TValue> item) => ((ICollection<KeyValuePair<string, TValue>>)_dictionary).Add(item); 111public void Clear() => _dictionary.Clear(); 115((ICollection<KeyValuePair<string, TValue>>)_dictionary).Contains(item); 118public bool ContainsKey(string key) => _dictionary.ContainsKey(key); 122((ICollection<KeyValuePair<string, TValue>>)_dictionary).CopyTo(array, arrayIndex); 128public Enumerator GetEnumerator() => new(_dictionary.GetEnumerator()); 137public bool Remove(string key) => _dictionary.Remove(key); 140bool ICollection<KeyValuePair<string, TValue>>.Remove(KeyValuePair<string, TValue> item) => ((ICollection<KeyValuePair<string, TValue>>)_dictionary).Remove(item); 193public bool TryGetValue(string key, [MaybeNullWhen(false)] out TValue value) => _dictionary.TryGetValue(key, out value); 196bool IDictionary<string, TValue>.TryGetValue(string key, out TValue value) => _dictionary.TryGetValue(key, out value!); 199bool IReadOnlyDictionary<string, TValue>.TryGetValue(string key, out TValue value) => _dictionary.TryGetValue(key, out value!); 209_dictionary[item.Key] = item.Value;