1 write to _source
System.Linq (1)
System\Linq\Distinct.cs (1)
105_source = source;
6 references to _source
System.Linq (6)
System\Linq\Distinct.cs (2)
109private protected override Iterator<TSource> Clone() => new DistinctIterator<TSource>(_source, _comparer); 116_enumerator = _source.GetEnumerator();
System\Linq\Distinct.SpeedOpt.cs (4)
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; 18public override TSource? TryGetFirst(out bool found) => _source.TryGetFirst(out found);