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)
198if (_buffer == null && _count > 0) 243Debug.Assert(_buffer != null && _bufferIndex != null); 246if (_count == 0 || _bufferIndex.Value >= _buffer.Count - 1) 253currentElement = _buffer[_bufferIndex.Value].First; 254currentKey = _buffer[_bufferIndex.Value].Second; 258|| _keyComparer.Compare(_buffer[_bufferIndex.Value].Second, _sharedIndices.MaxValue) <= 0; 275Debug.Assert(_buffer != null && _bufferIndex != null); 279if (_bufferIndex.Value < _buffer.Count - 1) 281for (_bufferIndex.Value++; _bufferIndex.Value < _buffer.Count; _bufferIndex.Value++) 285if (_keyComparer.Compare(_buffer[_bufferIndex.Value].Second, minKey) > 0) 287currentElement = _buffer[_bufferIndex.Value].First; 288currentKey = _buffer[_bufferIndex.Value].Second;