26 overrides of TryGetFirst
System.Linq (26)
System\Linq\AppendPrepend.SpeedOpt.cs (1)
133
public override TSource?
TryGetFirst
(out bool found)
System\Linq\Concat.SpeedOpt.cs (2)
130
public override TSource?
TryGetFirst
(out bool found)
311
public override TSource?
TryGetFirst
(out bool found)
System\Linq\DefaultIfEmpty.SpeedOpt.cs (1)
45
public override TSource?
TryGetFirst
(out bool found)
System\Linq\Distinct.SpeedOpt.cs (1)
18
public override TSource?
TryGetFirst
(out bool found) => _source.TryGetFirst(out found);
System\Linq\OrderedEnumerable.SpeedOpt.cs (2)
165
public override TElement?
TryGetFirst
(out bool found)
538
public override TElement?
TryGetFirst
(out bool found) => _source.TryGetElementAt(_minIndexInclusive, out found);
System\Linq\Range.SpeedOpt.cs (1)
73
public override int
TryGetFirst
(out bool found)
System\Linq\Repeat.SpeedOpt.cs (1)
72
public override TResult
TryGetFirst
(out bool found)
System\Linq\Reverse.SpeedOpt.cs (1)
56
public override TSource?
TryGetFirst
(out bool found)
System\Linq\Select.SpeedOpt.cs (7)
102
public override TResult?
TryGetFirst
(out bool found)
219
public override TResult
TryGetFirst
(out bool found)
348
public override TResult
TryGetFirst
(out bool found)
439
public override TResult?
TryGetFirst
(out bool found)
542
public override TResult?
TryGetFirst
(out bool found)
649
public override TResult?
TryGetFirst
(out bool found)
853
public override TResult?
TryGetFirst
(out bool found)
System\Linq\SkipTake.SpeedOpt.cs (2)
79
public override TSource?
TryGetFirst
(out bool found)
407
public override TSource?
TryGetFirst
(out bool found)
System\Linq\Union.SpeedOpt.cs (1)
33
public override TSource?
TryGetFirst
(out bool found)
System\Linq\Where.SpeedOpt.cs (6)
76
public override TSource?
TryGetFirst
(out bool found)
223
public override TSource?
TryGetFirst
(out bool found)
292
public override TSource?
TryGetFirst
(out bool found)
426
public override TResult?
TryGetFirst
(out bool found) => TryGetFirst(_source, _predicate, _selector, out found);
496
public override TResult?
TryGetFirst
(out bool found) => ArrayWhereSelectIterator<TSource, TResult>.TryGetFirst(CollectionsMarshal.AsSpan(_source), _predicate, _selector, out found);
572
public override TResult?
TryGetFirst
(out bool found)
5 references to TryGetFirst
System.Linq (5)
System\Linq\AnyAll.cs (1)
32
iterator.
TryGetFirst
(out bool found);
System\Linq\First.cs (1)
74
source is Iterator<TSource> iterator ? iterator.
TryGetFirst
(out found) :
System\Linq\Iterator.SpeedOpt.cs (1)
53
index == 0 ?
TryGetFirst
(out found) :
System\Linq\Reverse.SpeedOpt.cs (1)
96
return iterator.
TryGetFirst
(out found);
System\Linq\Select.SpeedOpt.cs (1)
652
TSource? input = _source.
TryGetFirst
(out sourceFound);