26 overrides of TryGetFirst
System.Linq (26)
System\Linq\AppendPrepend.SpeedOpt.cs (1)
133public override TSource? TryGetFirst(out bool found)
System\Linq\Concat.SpeedOpt.cs (2)
130public override TSource? TryGetFirst(out bool found) 311public override TSource? TryGetFirst(out bool found)
System\Linq\DefaultIfEmpty.SpeedOpt.cs (1)
45public override TSource? TryGetFirst(out bool found)
System\Linq\Distinct.SpeedOpt.cs (1)
18public override TSource? TryGetFirst(out bool found) => _source.TryGetFirst(out found);
System\Linq\OrderedEnumerable.SpeedOpt.cs (2)
165public override TElement? TryGetFirst(out bool found) 538public override TElement? TryGetFirst(out bool found) => _source.TryGetElementAt(_minIndexInclusive, out found);
System\Linq\Range.SpeedOpt.cs (1)
73public override int TryGetFirst(out bool found)
System\Linq\Repeat.SpeedOpt.cs (1)
72public override TResult TryGetFirst(out bool found)
System\Linq\Reverse.SpeedOpt.cs (1)
56public override TSource? TryGetFirst(out bool found)
System\Linq\Select.SpeedOpt.cs (7)
97public override TResult? TryGetFirst(out bool found) 214public override TResult TryGetFirst(out bool found) 343public override TResult TryGetFirst(out bool found) 434public override TResult? TryGetFirst(out bool found) 537public override TResult? TryGetFirst(out bool found) 644public override TResult? TryGetFirst(out bool found) 833public override TResult? TryGetFirst(out bool found)
System\Linq\SkipTake.SpeedOpt.cs (2)
79public override TSource? TryGetFirst(out bool found) 407public override TSource? TryGetFirst(out bool found)
System\Linq\Union.SpeedOpt.cs (1)
33public override TSource? TryGetFirst(out bool found)
System\Linq\Where.SpeedOpt.cs (6)
72public override TSource? TryGetFirst(out bool found) 215public override TSource? TryGetFirst(out bool found) 284public override TSource? TryGetFirst(out bool found) 414public override TResult? TryGetFirst(out bool found) => TryGetFirst(_source, _predicate, _selector, out found); 484public override TResult? TryGetFirst(out bool found) => ArrayWhereSelectIterator<TSource, TResult>.TryGetFirst(CollectionsMarshal.AsSpan(_source), _predicate, _selector, out found); 556public override TResult? TryGetFirst(out bool found)
5 references to TryGetFirst
System.Linq (5)
System\Linq\AnyAll.cs (1)
32iterator.TryGetFirst(out bool found);
System\Linq\First.cs (1)
74source is Iterator<TSource> iterator ? iterator.TryGetFirst(out found) :
System\Linq\Iterator.SpeedOpt.cs (1)
53index == 0 ? TryGetFirst(out found) :
System\Linq\Reverse.SpeedOpt.cs (1)
96return iterator.TryGetFirst(out found);
System\Linq\Select.SpeedOpt.cs (1)
647TSource? input = _source.TryGetFirst(out sourceFound);