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