30 overrides of TryGetFirst
System.Linq (30)
System\Linq\AppendPrepend.SpeedOpt.cs (1)
133public override TSource? TryGetFirst(out bool found)
System\Linq\Cast.SpeedOpt.cs (1)
68public override TResult? TryGetFirst(out bool found)
System\Linq\Concat.SpeedOpt.cs (2)
130public override TSource? TryGetFirst(out bool found) 315public 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\OfType.SpeedOpt.cs (1)
72public override TResult? TryGetFirst(out bool found)
System\Linq\OrderedEnumerable.SpeedOpt.cs (2)
165public override TElement? TryGetFirst(out bool found) 537public override TElement? TryGetFirst(out bool found) => _source.TryGetElementAt(_minIndexInclusive, out found);
System\Linq\Range.SpeedOpt.cs (1)
62public override T 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)
103public override TResult? TryGetFirst(out bool found) 220public override TResult TryGetFirst(out bool found) 366public override TResult TryGetFirst(out bool found) 470public override TResult? TryGetFirst(out bool found) 588public override TResult? TryGetFirst(out bool found) 710public override TResult? TryGetFirst(out bool found) 914public override TResult? TryGetFirst(out bool found)
System\Linq\Shuffle.SpeedOpt.cs (2)
33public override TSource? TryGetFirst(out bool found) => 158public override TSource? TryGetFirst(out bool found) =>
System\Linq\SkipTake.SpeedOpt.cs (2)
79public override TSource? TryGetFirst(out bool found) 418public 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) 238public override TSource? TryGetFirst(out bool found) 322public override TSource? TryGetFirst(out bool found) 471public override TResult? TryGetFirst(out bool found) => TryGetFirst(_source, _predicate, _selector, out found); 556public override TResult? TryGetFirst(out bool found) => ArrayWhereSelectIterator<TSource, TResult>.TryGetFirst(CollectionsMarshal.AsSpan(_source), _predicate, _selector, out found); 634public override TResult? TryGetFirst(out bool found)
5 references to TryGetFirst
System.Linq (5)
System\Linq\AnyAll.cs (1)
31iterator.TryGetFirst(out bool found);
System\Linq\First.cs (1)
73!IsSizeOptimized && source 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)
713TSource? input = _source.TryGetFirst(out sourceFound);