9 instantiations of ImmutableDictionary
MSBuildTaskHost (9)
Immutable\ImmutableDictionary.cs (9)
15return new ImmutableDictionary<K, V>(dictionary); 23return new ImmutableDictionary<K, V>(comparer); 137var clone = new ImmutableDictionary<K, V>(_backing); 145var clone = new ImmutableDictionary<K, V>(_backing); 161var clone = new ImmutableDictionary<K, V>(_backing); 169return new ImmutableDictionary<K, V>(_backing.Comparer); 198return new ImmutableDictionary<K, V>(); 218return new ImmutableDictionary<K, V>(n); 223return new ImmutableDictionary<K, V>(_backing, keyComparer);
20 references to ImmutableDictionary
MSBuildTaskHost (20)
CopyOnWriteDictionary.cs (7)
52private ImmutableDictionary<string, V> _backing; 59_backing = ImmutableDictionary<string, V>.Empty; 80var b = GetInitialDictionary((IEqualityComparer<string>?)comparer); 85private static ImmutableDictionary<string, V> GetInitialDictionary(IEqualityComparer<string>? keyComparer) 236ImmutableDictionary<string, V> initial = _backing; 290ImmutableDictionary<string, V> initial = _backing; 386ImmutableDictionary<string, V> snapshot = _backing;
Immutable\ImmutableDictionary.cs (13)
13public static ImmutableDictionary<K, V> ToImmutableDictionary<K, V>(this IDictionary<K, V> dictionary) 21internal static ImmutableDictionary<K, V> Create<K, V>(IEqualityComparer<K> comparer) 130internal ImmutableDictionary<K, V> SetItem(K key, V value) 137var clone = new ImmutableDictionary<K, V>(_backing); 143internal ImmutableDictionary<K, V> SetItems(IEnumerable<KeyValuePair<K, V>> items) 145var clone = new ImmutableDictionary<K, V>(_backing); 154internal ImmutableDictionary<K, V> Remove(K key) 161var clone = new ImmutableDictionary<K, V>(_backing); 167internal ImmutableDictionary<K, V> Clear() 184if (source is ImmutableDictionary<K, V> imm) 194internal static ImmutableDictionary<K, V> Empty 209internal ImmutableDictionary<K, V> AddRange(KeyValuePair<K, V>[] v) 221internal ImmutableDictionary<K, V> WithComparers(IEqualityComparer<K> keyComparer)