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