Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SortQueryOperatorEnumerator.cs
Go to the documentation of this file.
2
4
5internal sealed class SortQueryOperatorEnumerator<TInputOutput, TKey, TSortKey> : QueryOperatorEnumerator<TInputOutput, TSortKey>
6{
8
9 private readonly Func<TInputOutput, TSortKey> _keySelector;
10
16
17 internal override bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TInputOutput currentElement, [AllowNull] ref TSortKey currentKey)
18 {
19 TKey currentKey2 = default(TKey);
20 if (!_source.MoveNext(ref currentElement, ref currentKey2))
21 {
22 return false;
23 }
24 currentKey = _keySelector(currentElement);
25 return true;
26 }
27
28 protected override void Dispose(bool disposing)
29 {
31 }
32}
bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TElement currentElement, [AllowNull] ref TKey currentKey)
readonly Func< TInputOutput, TSortKey > _keySelector
override bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TInputOutput currentElement, [AllowNull] ref TSortKey currentKey)
SortQueryOperatorEnumerator(QueryOperatorEnumerator< TInputOutput, TKey > source, Func< TInputOutput, TSortKey > keySelector)
readonly QueryOperatorEnumerator< TInputOutput, TKey > _source