2 writes to _comparer
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableSortedSet_1.cs (2)
58
_comparer
= comparer ?? Comparer<T>.Default;
73
_comparer
= comparer;
13 references to _comparer
System.Collections.Immutable (13)
System\Collections\Immutable\ImmutableSortedSet_1.cs (13)
81
return _root.IsEmpty ? this : Empty.WithComparer(
_comparer
);
127
get { return
_comparer
; }
181
return this.Wrap(_root.Add(value,
_comparer
, out _));
189
return this.Wrap(_root.Remove(value,
_comparer
, out _));
206
Node searchResult = _root.Search(equalValue,
_comparer
);
250
result = result.Remove(item,
_comparer
, out mutated);
265
ImmutableSortedSet<T> otherAsSet = ImmutableSortedSet.CreateRange(
_comparer
, other);
351
if (comparer ==
_comparer
)
584
return _root.IndexOf(item,
_comparer
);
596
return _root.Contains(value,
_comparer
);
1052
result = result.Add(item,
_comparer
, out _);
1076
result = result.Add(item,
_comparer
, out _);
1091
return root.IsEmpty ? this.Clear() : new ImmutableSortedSet<T>(root,
_comparer
);