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)
58
public AdditionalPropertiesDictionary Clone() => new(
_dictionary
);
63
get =>
_dictionary
[key];
64
set =>
_dictionary
[key] = value;
68
public ICollection<string> Keys =>
_dictionary
.Keys;
71
public ICollection<object?> Values =>
_dictionary
.Values;
74
public int Count =>
_dictionary
.Count;
80
IEnumerable<string> IReadOnlyDictionary<string, object?>.Keys =>
_dictionary
.Keys;
83
IEnumerable<object?> IReadOnlyDictionary<string, object?>.Values =>
_dictionary
.Values;
86
public void Add(string key, object? value) =>
_dictionary
.Add(key, value);
95
return
_dictionary
.TryAdd(key, value);
108
void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item) => ((ICollection<KeyValuePair<string, object?>>)
_dictionary
).Add(item);
111
public void Clear() =>
_dictionary
.Clear();
115
((ICollection<KeyValuePair<string, object?>>)
_dictionary
).Contains(item);
118
public bool ContainsKey(string key) =>
_dictionary
.ContainsKey(key);
122
((ICollection<KeyValuePair<string, object?>>)
_dictionary
).CopyTo(array, arrayIndex);
128
public Enumerator GetEnumerator() => new(
_dictionary
.GetEnumerator());
137
public bool Remove(string key) =>
_dictionary
.Remove(key);
140
bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item) => ((ICollection<KeyValuePair<string, object?>>)
_dictionary
).Remove(item);
143
public bool TryGetValue(string key, out object? value) =>
_dictionary
.TryGetValue(key, out value);