10 writes to First
System.Linq.Parallel (10)
System\Linq\Parallel\QueryOperators\Inlined\DecimalAverageAggregationOperator.cs (1)
59result.First += enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\DoubleAverageAggregationOperator.cs (1)
59result.First += enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\FloatAverageAggregationOperator.cs (1)
59result.First += enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\IntAverageAggregationOperator.cs (1)
59result.First += enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\LongAverageAggregationOperator.cs (1)
59result.First += enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (1)
58result.First += enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (1)
58result.First += enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (1)
58result.First += enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (1)
58result.First += enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (1)
58result.First += enumerator.Current.First;
71 references to First
System.Linq.Parallel (71)
System\Linq\Parallel\Enumerables\AggregationMinMaxHelpers.cs (4)
75(!accumulator.First || Util.Sign(comparer.Compare(element, accumulator.Second)) == sign)) 98if (element.First && 99(!accumulator.First || Util.Sign(comparer.Compare(element.Second, accumulator.Second)) == sign)) 118Debug.Assert(accumulator.First || default(T) == null,
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (2)
294_producerHeap.Insert(new Producer<TKey>(element.First, producer)); 329_producerHeap.ReplaceMax(new Producer<TKey>(element.First, lastProducer));
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (8)
191_hashLookup.Add(rightElement.First); 205if (_hashLookup.Add(leftElement.First)) 208currentElement = leftElement.First; 280rightLookup.Add(rightElement.First); 294if (rightLookup.Contains(leftElement.First)) 300Wrapper<TInputOutput> wrappedLeftElement = new Wrapper<TInputOutput>(leftElement.First); 306leftLookup[wrappedLeftElement] = new Pair<TInputOutput, TLeftKey>(leftElement.First, leftKey); 316currentElement = currentPair.First;
System\Linq\Parallel\QueryOperators\Binary\GroupJoinQueryOperator.cs (1)
442value = new HashLookupValueList<IEnumerable<TElement>, TOrderKey>(valueList.First, valueList.Second);
System\Linq\Parallel\QueryOperators\Binary\HashJoinQueryOperatorEnumerator.cs (4)
127TLeftInput leftElement = leftPair.First; 144currentElement = _resultSelector(leftElement, matchValue.Head.First); 169currentElement = _resultSelector(mutables._currentLeft, rightMatch.First); 256TBaseElement element = currentPair.First;
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (8)
178_hashLookup.Add(rightElement.First); 195if (_hashLookup.Remove(leftElement.First)) 197currentElement = leftElement.First; 281Wrapper<TInputOutput> wrappedLeftElem = new Wrapper<TInputOutput>(leftElement.First); 290_hashLookup[wrappedLeftElem] = new Pair<TInputOutput, TLeftKey>(leftElement.First, leftKey); 308Wrapper<TInputOutput> wrappedRightElem = new Wrapper<TInputOutput>(rightElement.First); 312currentElement = entry.First; 315_hashLookup.Remove(new Wrapper<TInputOutput>(entry.First));
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (9)
240if (_hashLookup.Add(currentLeftElement.First)) 245currentElement = currentLeftElement.First; 268if (_hashLookup.Add(currentRightElement.First)) 273currentElement = currentRightElement.First; 356Wrapper<TInputOutput> wrappedElem = new Wrapper<TInputOutput>(elem.First); 360union[wrappedElem] = new Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(elem.First, key); 373Wrapper<TInputOutput> wrappedElem = new Wrapper<TInputOutput>(elem.First); 377union[wrappedElem] = new Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(elem.First, key); 387currentElement = current.First;
System\Linq\Parallel\QueryOperators\Inlined\DecimalAverageAggregationOperator.cs (2)
59result.First += enumerator.Current.First; 65return result.First / result.Second;
System\Linq\Parallel\QueryOperators\Inlined\DoubleAverageAggregationOperator.cs (2)
59result.First += enumerator.Current.First; 65return result.First / result.Second;
System\Linq\Parallel\QueryOperators\Inlined\FloatAverageAggregationOperator.cs (2)
59result.First += enumerator.Current.First; 65return (float)(result.First / result.Second);
System\Linq\Parallel\QueryOperators\Inlined\IntAverageAggregationOperator.cs (2)
59result.First += enumerator.Current.First; 65return (double)result.First / result.Second;
System\Linq\Parallel\QueryOperators\Inlined\LongAverageAggregationOperator.cs (2)
59result.First += enumerator.Current.First; 65return (double)result.First / result.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (2)
58result.First += enumerator.Current.First; 64return result.First / result.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (2)
58result.First += enumerator.Current.First; 64return result.First / result.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (2)
58result.First += enumerator.Current.First; 64return (float)(result.First / result.Second);
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (2)
58result.First += enumerator.Current.First; 64return (double)result.First / result.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (2)
58result.First += enumerator.Current.First; 64return (double)result.First / result.Second;
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (3)
161if (_hashLookup.Add(current.First)) 166currentElement = current.First; 243Wrapper<TInputOutput> wrappedElem = new Wrapper<TInputOutput>(elem.First);
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (5)
348currentValue.Add(sourceElement.First); 410currentValue.Add(_elementSelector(sourceElement.First)); 584currentValue._grouping.Add(sourceElement.First, sourceOrderKey); 660currentValue._grouping.Add(_elementSelector(sourceElement.First), sourceOrderKey); 799orderKeys[idx] = p.First;
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (1)
152currentElement = _buffer[_bufferIndex.Value].First;
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (2)
253currentElement = _buffer[_bufferIndex.Value].First; 287currentElement = _buffer[_bufferIndex.Value].First;
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (2)
356currentElement = _buffer[_bufferIndex.Value].First; 380currentElement = _buffer[_bufferIndex.Value].First;
System\Linq\Parallel\Utils\PairComparer.cs (2)
33int result1 = _comparer1.Compare(x.First, y.First);