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