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