1 write to _additionalElements
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (1)
59_additionalElements = additionalElements ?? ImmutableList<T>.Node.EmptyNode;
21 references to _additionalElements
System.Collections.Immutable (21)
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (21)
70get { return _additionalElements == null; } 108&& object.ReferenceEquals(_additionalElements, other._additionalElements); 121&& object.ReferenceEquals(_additionalElements, other._additionalElements); 139if (valueComparer.Equals(value, _firstValue) || _additionalElements.IndexOf(value, valueComparer) >= 0) 146return new HashBucket(_firstValue, _additionalElements.Add(value)); 161return valueComparer.Equals(value, _firstValue) || _additionalElements.IndexOf(value, valueComparer) >= 0; 183int index = _additionalElements.IndexOf(value, valueComparer); 186existingValue = _additionalElements.ItemRef(index); 212if (_additionalElements.IsEmpty) 221int indexOfRootNode = _additionalElements.Left!.Count; 223return new HashBucket(_additionalElements.Key, _additionalElements.RemoveAt(indexOfRootNode)); 227int index = _additionalElements.IndexOf(value, equalityComparer); 236return new HashBucket(_firstValue, _additionalElements.RemoveAt(index)); 245_additionalElements?.Freeze(); 269/// The enumerator that represents the current position over the <see cref="_additionalElements"/> of the <see cref="HashBucket"/>. 301/// We're enumerating the <see cref="_additionalElements"/> in the bucket. 358if (_bucket._additionalElements.IsEmpty) 365_additionalEnumerator = new ImmutableList<T>.Enumerator(_bucket._additionalElements);