1 write to _buffer
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (1)
235
_buffer
= buffer;
12 references to _buffer
System.Linq.Parallel (12)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (12)
198
if (
_buffer
== null && _count > 0)
243
Debug.Assert(
_buffer
!= null && _bufferIndex != null);
246
if (_count == 0 || _bufferIndex.Value >=
_buffer
.Count - 1)
253
currentElement =
_buffer
[_bufferIndex.Value].First;
254
currentKey =
_buffer
[_bufferIndex.Value].Second;
258
|| _keyComparer.Compare(
_buffer
[_bufferIndex.Value].Second, _sharedIndices.MaxValue) <= 0;
275
Debug.Assert(
_buffer
!= null && _bufferIndex != null);
279
if (_bufferIndex.Value <
_buffer
.Count - 1)
281
for (_bufferIndex.Value++; _bufferIndex.Value <
_buffer
.Count; _bufferIndex.Value++)
285
if (_keyComparer.Compare(
_buffer
[_bufferIndex.Value].Second, minKey) > 0)
287
currentElement =
_buffer
[_bufferIndex.Value].First;
288
currentKey =
_buffer
[_bufferIndex.Value].Second;