10 writes to First
System.Core (10)
System\Linq\Parallel\QueryOperators\Inlined\DecimalAverageAggregationOperator.cs (1)
66
result.
First
+= enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\DoubleAverageAggregationOperator.cs (1)
65
result.
First
+= enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\FloatAverageAggregationOperator.cs (1)
65
result.
First
+= enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\IntAverageAggregationOperator.cs (1)
66
result.
First
+= enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\LongAverageAggregationOperator.cs (1)
66
result.
First
+= enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (1)
62
result.
First
+= enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (1)
62
result.
First
+= enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (1)
62
result.
First
+= enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (1)
62
result.
First
+= enumerator.Current.First;
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (1)
62
result.
First
+= enumerator.Current.First;
69 references to First
System.Core (69)
System\Linq\Parallel\Enumerables\AggregationMinMaxHelpers.cs (4)
79
(!accumulator.
First
|| Util.Sign(comparer.Compare(element, accumulator.Second)) == sign))
102
if (element.
First
&&
103
(!accumulator.
First
|| Util.Sign(comparer.Compare(element.Second, accumulator.Second)) == sign))
122
Contract.Assert(accumulator.
First
|| default(T) == null,
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (2)
293
m_producerHeap.Insert(new Producer<TKey>(element.
First
, producer));
328
m_producerHeap.ReplaceMax(new Producer<TKey>(element.
First
, lastProducer));
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (8)
195
m_hashLookup.Add(rightElement.
First
);
208
if (m_hashLookup.Add(leftElement.
First
))
211
currentElement = leftElement.
First
;
281
rightLookup.Add(rightElement.
First
);
295
if (rightLookup.Contains(leftElement.
First
))
301
Wrapper<TInputOutput> wrappedLeftElement = new Wrapper<TInputOutput>(leftElement.
First
);
307
leftLookup[wrappedLeftElement] = new Pair<TInputOutput, TLeftKey>(leftElement.
First
, leftKey);
317
currentElement = currentPair.
First
;
System\Linq\Parallel\QueryOperators\Binary\HashJoinQueryOperatorEnumerator.cs (3)
121
TRightInput rightElement = rightPair.
First
;
193
TLeftInput leftElement = leftPair.
First
;
212
currentElement = m_singleResultSelector(leftElement, matchValue.
First
);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (9)
183
m_hashLookup.Add(rightElement.
First
);
199
if (m_hashLookup.Contains(leftElement.
First
))
201
m_hashLookup.Remove(leftElement.
First
);
202
currentElement = leftElement.
First
;
287
Wrapper<TInputOutput> wrappedLeftElem = new Wrapper<TInputOutput>(leftElement.
First
);
296
m_hashLookup[wrappedLeftElem] = new Pair<TInputOutput, TLeftKey>(leftElement.
First
, leftKey);
314
Wrapper<TInputOutput> wrappedRightElem = new Wrapper<TInputOutput>(rightElement.
First
);
318
currentElement = entry.
First
;
321
m_hashLookup.Remove(new Wrapper<TInputOutput>(entry.
First
));
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (9)
247
if (m_hashLookup.Add(currentLeftElement.
First
))
252
currentElement = currentLeftElement.
First
;
274
if (m_hashLookup.Add(currentRightElement.
First
))
279
currentElement = currentRightElement.
First
;
371
Wrapper<TInputOutput> wrappedElem = new Wrapper<TInputOutput>(elem.
First
);
375
union[wrappedElem] = new Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(elem.
First
, key);
388
Wrapper<TInputOutput> wrappedElem = new Wrapper<TInputOutput>(elem.
First
);
392
union[wrappedElem] = new Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(elem.
First
, key); ;
402
currentElement = current.
First
;
System\Linq\Parallel\QueryOperators\Inlined\DecimalAverageAggregationOperator.cs (2)
66
result.First += enumerator.Current.
First
;
72
return result.
First
/ result.Second;
System\Linq\Parallel\QueryOperators\Inlined\DoubleAverageAggregationOperator.cs (2)
65
result.First += enumerator.Current.
First
;
71
return result.
First
/ result.Second;
System\Linq\Parallel\QueryOperators\Inlined\FloatAverageAggregationOperator.cs (2)
65
result.First += enumerator.Current.
First
;
71
return (float)(result.
First
/ result.Second);
System\Linq\Parallel\QueryOperators\Inlined\IntAverageAggregationOperator.cs (2)
66
result.First += enumerator.Current.
First
;
72
return (double)result.
First
/ result.Second;
System\Linq\Parallel\QueryOperators\Inlined\LongAverageAggregationOperator.cs (2)
66
result.First += enumerator.Current.
First
;
72
return (double)result.
First
/ result.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (2)
62
result.First += enumerator.Current.
First
;
68
return result.
First
/ result.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (2)
62
result.First += enumerator.Current.
First
;
68
return result.
First
/ result.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (2)
62
result.First += enumerator.Current.
First
;
68
return (float)(result.
First
/ result.Second);
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (2)
62
result.First += enumerator.Current.
First
;
68
return (double)result.
First
/ result.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (2)
62
result.First += enumerator.Current.
First
;
68
return (double)result.
First
/ result.Second;
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (3)
167
if (m_hashLookup.Add(current.
First
))
172
currentElement = current.
First
;
248
Wrapper<TInputOutput> wrappedElem = new Wrapper<TInputOutput>(elem.
First
);
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (4)
356
currentValue.Add(sourceElement.
First
);
420
currentValue.Add(m_elementSelector(sourceElement.
First
));
596
currentValue.m_grouping.Add(sourceElement.
First
, sourceOrderKey);
673
currentValue.m_grouping.Add(m_elementSelector(sourceElement.
First
), sourceOrderKey);
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (1)
157
currentElement = m_buffer[m_bufferIndex.Value].
First
;
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (2)
253
currentElement = m_buffer[m_bufferIndex.Value].
First
;
286
currentElement = m_buffer[m_bufferIndex.Value].
First
;
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (2)
356
currentElement = m_buffer[m_bufferIndex.Value].
First
;
380
currentElement = m_buffer[m_bufferIndex.Value].
First
;
System\Linq\Parallel\Utils\PairComparer.cs (2)
37
int result1 = m_comparer1.Compare(x.
First
, y.
First
);