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)
61
public AdditionalPropertiesDictionary<TValue> Clone() => new(
_dictionary
);
66
get =>
_dictionary
[key];
67
set =>
_dictionary
[key] = value;
71
public ICollection<string> Keys =>
_dictionary
.Keys;
74
public ICollection<TValue> Values =>
_dictionary
.Values;
77
public int Count =>
_dictionary
.Count;
83
IEnumerable<string> IReadOnlyDictionary<string, TValue>.Keys =>
_dictionary
.Keys;
86
IEnumerable<TValue> IReadOnlyDictionary<string, TValue>.Values =>
_dictionary
.Values;
89
public void Add(string key, TValue value) =>
_dictionary
.Add(key, value);
98
return
_dictionary
.TryAdd(key, value);
111
void ICollection<KeyValuePair<string, TValue>>.Add(KeyValuePair<string, TValue> item) => ((ICollection<KeyValuePair<string, TValue>>)
_dictionary
).Add(item);
114
public void Clear() =>
_dictionary
.Clear();
118
((ICollection<KeyValuePair<string, TValue>>)
_dictionary
).Contains(item);
121
public bool ContainsKey(string key) =>
_dictionary
.ContainsKey(key);
125
((ICollection<KeyValuePair<string, TValue>>)
_dictionary
).CopyTo(array, arrayIndex);
131
public Enumerator GetEnumerator() => new(
_dictionary
.GetEnumerator());
140
public bool Remove(string key) =>
_dictionary
.Remove(key);
143
bool ICollection<KeyValuePair<string, TValue>>.Remove(KeyValuePair<string, TValue> item) => ((ICollection<KeyValuePair<string, TValue>>)
_dictionary
).Remove(item);
196
public bool TryGetValue(string key, [MaybeNullWhen(false)] out TValue value) =>
_dictionary
.TryGetValue(key, out value);
199
bool IDictionary<string, TValue>.TryGetValue(string key, out TValue value) =>
_dictionary
.TryGetValue(key, out value!);
202
bool IReadOnlyDictionary<string, TValue>.TryGetValue(string key, out TValue value) =>
_dictionary
.TryGetValue(key, out value!);