2 writes to _dictionary
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (2)
48
_dictionary
= null;
88
_dictionary
??= PooledDictionary<K, ValueSet>.GetInstance();
20 references to _dictionary
Microsoft.CodeAnalysis.CodeStyle (20)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (20)
39
if (
_dictionary
!= null)
42
foreach (var kvp in
_dictionary
)
47
_dictionary
.Free();
91
public bool IsEmpty =>
_dictionary
== null;
98
if (
_dictionary
is object &&
_dictionary
.TryGetValue(k, out var valueSet))
103
_dictionary
[k] = valueSet.WithAddedItem(v);
108
_dictionary
![k] = new ValueSet(v);
114
if (
_dictionary
is not null &&
_dictionary
.TryGetValue(key, out var valueSet))
126
return
_dictionary
is null ? s_emptyDictionary.GetEnumerator() :
_dictionary
.GetEnumerator();
147
if (
_dictionary
is object &&
_dictionary
.TryGetValue(k, out var valueSet))
159
if (
_dictionary
is object &&
_dictionary
.TryGetValue(k, out var valueSet))
170
return
_dictionary
is object &&
171
_dictionary
.TryGetValue(key, out var valueSet) &&
180
get { return
_dictionary
is null ? s_emptyDictionary.Keys :
_dictionary
.Keys; }