3 writes to _dictionary
Microsoft.Extensions.AI.Abstractions (3)
AdditionalPropertiesDictionary.cs (3)
30_dictionary = new(StringComparer.OrdinalIgnoreCase); 36_dictionary = new(dictionary, StringComparer.OrdinalIgnoreCase); 43_dictionary = new(collection, StringComparer.OrdinalIgnoreCase);
19 references to _dictionary
Microsoft.Extensions.AI.Abstractions (19)
AdditionalPropertiesDictionary.cs (19)
58public AdditionalPropertiesDictionary Clone() => new(_dictionary); 63get => _dictionary[key]; 64set => _dictionary[key] = value; 68public ICollection<string> Keys => _dictionary.Keys; 71public ICollection<object?> Values => _dictionary.Values; 74public int Count => _dictionary.Count; 80IEnumerable<string> IReadOnlyDictionary<string, object?>.Keys => _dictionary.Keys; 83IEnumerable<object?> IReadOnlyDictionary<string, object?>.Values => _dictionary.Values; 86public void Add(string key, object? value) => _dictionary.Add(key, value); 95return _dictionary.TryAdd(key, value); 108void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item) => ((ICollection<KeyValuePair<string, object?>>)_dictionary).Add(item); 111public void Clear() => _dictionary.Clear(); 115((ICollection<KeyValuePair<string, object?>>)_dictionary).Contains(item); 118public bool ContainsKey(string key) => _dictionary.ContainsKey(key); 122((ICollection<KeyValuePair<string, object?>>)_dictionary).CopyTo(array, arrayIndex); 128public Enumerator GetEnumerator() => new(_dictionary.GetEnumerator()); 137public bool Remove(string key) => _dictionary.Remove(key); 140bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item) => ((ICollection<KeyValuePair<string, object?>>)_dictionary).Remove(item); 143public bool TryGetValue(string key, out object? value) => _dictionary.TryGetValue(key, out value);