4 writes to Dictionary
ILLink.RoslynAnalyzer (4)
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (4)
27
public DefaultValueDictionary(TValue defaultValue) => (
Dictionary
, DefaultValue) = (null, defaultValue);
29
private DefaultValueDictionary(TValue defaultValue, Dictionary<TKey, TValue> dictionary) => (
Dictionary
, DefaultValue) = (dictionary, defaultValue);
33
Dictionary
= other.Dictionary == null ? null : new Dictionary<TKey, TValue>(other.Dictionary);
44
(
Dictionary
??= new Dictionary<TKey, TValue>())[key] = value;
16 references to Dictionary
ILLink.RoslynAnalyzer (16)
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (16)
33
Dictionary = other.
Dictionary
== null ? null : new Dictionary<TKey, TValue>(other.
Dictionary
);
37
public TValue Get(TKey key) =>
Dictionary
?.TryGetValue(key, out var value) == true ? value : DefaultValue;
42
Dictionary
?.Remove(key);
52
if (
Dictionary
== null)
53
return other.
Dictionary
== null;
55
if (other.
Dictionary
== null)
58
if (
Dictionary
.Count != other.
Dictionary
.Count)
61
foreach (var kvp in other.
Dictionary
)
72
public int Count =>
Dictionary
?.Count ?? 0;
76
return
Dictionary
?.GetEnumerator() ?? Enumerable.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator();
85
if (
Dictionary
!= null)
87
foreach (var kvp in
Dictionary
)
98
if (
Dictionary
== null)
102
foreach (var kvp in
Dictionary
)