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)
70
get { return
_additionalElements
== null; }
108
&& object.ReferenceEquals(
_additionalElements
, other.
_additionalElements
);
121
&& object.ReferenceEquals(
_additionalElements
, other.
_additionalElements
);
139
if (valueComparer.Equals(value, _firstValue) ||
_additionalElements
.IndexOf(value, valueComparer) >= 0)
146
return new HashBucket(_firstValue,
_additionalElements
.Add(value));
161
return valueComparer.Equals(value, _firstValue) ||
_additionalElements
.IndexOf(value, valueComparer) >= 0;
183
int index =
_additionalElements
.IndexOf(value, valueComparer);
186
existingValue =
_additionalElements
.ItemRef(index);
212
if (
_additionalElements
.IsEmpty)
221
int indexOfRootNode =
_additionalElements
.Left!.Count;
223
return new HashBucket(
_additionalElements
.Key,
_additionalElements
.RemoveAt(indexOfRootNode));
227
int index =
_additionalElements
.IndexOf(value, equalityComparer);
236
return 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.
358
if (_bucket.
_additionalElements
.IsEmpty)
365
_additionalEnumerator = new ImmutableList<T>.Enumerator(_bucket.
_additionalElements
);