9 instantiations of SegmentedDictionary
Microsoft.Build.Framework (9)
ImmutableSegmentedDictionary`2.cs (6)
73public static readonly ImmutableSegmentedDictionary<TKey, TValue> Empty = new(new SegmentedDictionary<TKey, TValue>()); 150var dictionary = new SegmentedDictionary<TKey, TValue>(self._dictionary, self._dictionary.Comparer); 172dictionary ??= new SegmentedDictionary<TKey, TValue>(self._dictionary, self._dictionary.Comparer); 214var dictionary = new SegmentedDictionary<TKey, TValue>(self._dictionary, self._dictionary.Comparer); 237var dictionary = new SegmentedDictionary<TKey, TValue>(self._dictionary, self._dictionary.Comparer); 295return new ImmutableSegmentedDictionary<TKey, TValue>(new SegmentedDictionary<TKey, TValue>(keyComparer));
ImmutableSegmentedDictionary`2+Builder.cs (3)
48_mutableDictionary = new SegmentedDictionary<TKey, TValue>(value); 98return _mutableDictionary ??= new SegmentedDictionary<TKey, TValue>(_dictionary._dictionary, _dictionary.KeyComparer); 126_mutableDictionary = new SegmentedDictionary<TKey, TValue>(KeyComparer);
29 references to SegmentedDictionary
Microsoft.Build.Framework (29)
ImmutableSegmentedDictionary`2.cs (6)
75private readonly SegmentedDictionary<TKey, TValue> _dictionary; 77private ImmutableSegmentedDictionary(SegmentedDictionary<TKey, TValue> dictionary) 150var dictionary = new SegmentedDictionary<TKey, TValue>(self._dictionary, self._dictionary.Comparer); 165SegmentedDictionary<TKey, TValue>? dictionary = null; 214var dictionary = new SegmentedDictionary<TKey, TValue>(self._dictionary, self._dictionary.Comparer); 237var dictionary = new SegmentedDictionary<TKey, TValue>(self._dictionary, self._dictionary.Comparer);
ImmutableSegmentedDictionary`2+Builder.cs (4)
25private SegmentedDictionary<TKey, TValue>? _mutableDictionary; 47var valuesToAdd = ReadOnlyDictionary; 60private SegmentedDictionary<TKey, TValue> ReadOnlyDictionary => _mutableDictionary ?? _dictionary._dictionary; 96private SegmentedDictionary<TKey, TValue> GetOrCreateMutableDictionary()
ImmutableSegmentedDictionary`2+Enumerator.cs (3)
14private readonly SegmentedDictionary<TKey, TValue> _dictionary; 16private SegmentedDictionary<TKey, TValue>.Enumerator _enumerator; 18internal Enumerator(SegmentedDictionary<TKey, TValue> dictionary, ReturnType returnType)
ImmutableSegmentedDictionary`2+PrivateInterlocked.cs (3)
19var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 28var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 37var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
SegmentedDictionary`2.cs (13)
117if (dictionary.GetType() == typeof(SegmentedDictionary<TKey, TValue>)) 119var d = (SegmentedDictionary<TKey, TValue>)dictionary; 1138private readonly SegmentedDictionary<TKey, TValue> _dictionary; 1147internal Enumerator(SegmentedDictionary<TKey, TValue> dictionary, int getEnumeratorRetType) 1260private readonly SegmentedDictionary<TKey, TValue> _dictionary; 1262public KeyCollection(SegmentedDictionary<TKey, TValue> dictionary) 1388private readonly SegmentedDictionary<TKey, TValue> _dictionary; 1393internal Enumerator(SegmentedDictionary<TKey, TValue> dictionary) 1460private readonly SegmentedDictionary<TKey, TValue> _dictionary; 1462public ValueCollection(SegmentedDictionary<TKey, TValue> dictionary) 1588private readonly SegmentedDictionary<TKey, TValue> _dictionary; 1593internal Enumerator(SegmentedDictionary<TKey, TValue> dictionary)