1 write to _additionalElements
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (1)
44_additionalElements = additionalElements ?? ImmutableList<KeyValuePair<TKey, TValue>>.Node.EmptyNode;
22 references to _additionalElements
System.Collections.Immutable (22)
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (22)
55get { return _additionalElements == null; } 79get { return _additionalElements; } 155return new HashBucket(kv, _additionalElements); 174int keyCollisionIndex = _additionalElements.IndexOf(kv, keyOnlyComparer); 178return new HashBucket(_firstValue, _additionalElements.Add(kv)); 186return new HashBucket(_firstValue, _additionalElements.ReplaceAt(keyCollisionIndex, kv)); 191ref readonly KeyValuePair<TKey, TValue> existingEntry = ref _additionalElements.ItemRef(keyCollisionIndex); 225if (_additionalElements.IsEmpty) 234int indexOfRootNode = _additionalElements.Left!.Count; 236return new HashBucket(_additionalElements.Key, _additionalElements.RemoveAt(indexOfRootNode)); 240int index = _additionalElements.IndexOf(kv, keyOnlyComparer); 249return new HashBucket(_firstValue, _additionalElements.RemoveAt(index)); 275int index = _additionalElements.IndexOf(kv, comparers.KeyOnlyComparer); 282value = _additionalElements.ItemRef(index).Value; 314int index = _additionalElements.IndexOf(kv, comparers.KeyOnlyComparer); 321actualKey = _additionalElements.ItemRef(index).Key; 330_additionalElements?.Freeze(); 349/// The enumerator that represents the current position over the <see cref="_additionalElements"/> of the <see cref="HashBucket"/>. 380/// We're enumerating the <see cref="_additionalElements"/> in the bucket. 435if (_bucket._additionalElements.IsEmpty) 442_additionalEnumerator = new ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator(_bucket._additionalElements);