Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AsSequentialQuery()

override IEnumerable< TOutput > System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >.AsSequentialQuery ( CancellationToken token)
inlinepackage

Definition at line 273 of file SelectManyQueryOperator.cs.

274 {
275 if (_rightChildSelector != null)
276 {
277 if (_resultSelector != null)
278 {
279 return CancellableEnumerable.Wrap(base.Child.AsSequentialQuery(token), token).SelectMany(_rightChildSelector, _resultSelector);
280 }
281 return (IEnumerable<TOutput>)CancellableEnumerable.Wrap(base.Child.AsSequentialQuery(token), token).SelectMany(_rightChildSelector);
282 }
283 if (_resultSelector != null)
284 {
285 return CancellableEnumerable.Wrap(base.Child.AsSequentialQuery(token), token).SelectMany(_indexedRightChildSelector, _resultSelector);
286 }
287 return (IEnumerable<TOutput>)CancellableEnumerable.Wrap(base.Child.AsSequentialQuery(token), token).SelectMany(_indexedRightChildSelector);
288 }
readonly Func< TLeftInput, int, IEnumerable< TRightInput > > _indexedRightChildSelector
readonly Func< TLeftInput, TRightInput, TOutput > _resultSelector
readonly Func< TLeftInput, IEnumerable< TRightInput > > _rightChildSelector

References System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >._indexedRightChildSelector, System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >._resultSelector, and System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >._rightChildSelector.