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)
102public override TResult? TryGetFirst(out bool found) 219public override TResult TryGetFirst(out bool found) 348public override TResult TryGetFirst(out bool found) 439public override TResult? TryGetFirst(out bool found) 542public override TResult? TryGetFirst(out bool found) 649public override TResult? TryGetFirst(out bool found) 853public 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)
76public override TSource? TryGetFirst(out bool found) 223public override TSource? TryGetFirst(out bool found) 292public override TSource? TryGetFirst(out bool found) 426public override TResult? TryGetFirst(out bool found) => TryGetFirst(_source, _predicate, _selector, out found); 496public override TResult? TryGetFirst(out bool found) => ArrayWhereSelectIterator<TSource, TResult>.TryGetFirst(CollectionsMarshal.AsSpan(_source), _predicate, _selector, out found); 572public 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)
652TSource? input = _source.TryGetFirst(out sourceFound);