1 write to _comparer
System.Linq (1)
System\Linq\Distinct.cs (1)
106
_comparer
= comparer;
5 references to _comparer
System.Linq (5)
System\Linq\Distinct.cs (2)
109
private protected override Iterator<TSource> Clone() => new DistinctIterator<TSource>(_source,
_comparer
);
124
_set = new HashSet<TSource>(DefaultInternalSetCapacity,
_comparer
);
System\Linq\Distinct.SpeedOpt.cs (3)
12
public override TSource[] ToArray() => ICollectionToArray(new HashSet<TSource>(_source,
_comparer
));
14
public override List<TSource> ToList() => new List<TSource>(new HashSet<TSource>(_source,
_comparer
));
16
public override int GetCount(bool onlyIfCheap) => onlyIfCheap ? -1 : new HashSet<TSource>(_source,
_comparer
).Count;