3 writes to _elements
System.Linq (3)
System\Linq\Grouping.cs (3)
367
_elements
= new TElement[1];
374
Array.Resize(ref
_elements
, checked(_count * 2));
385
Array.Resize(ref
_elements
, _count);
14 references to _elements
System.Linq (14)
System\Linq\Grouping.cs (10)
177
_current = _resultSelector(_g.Key, _g.
_elements
);
233
_current = _resultSelector(_g.Key, _g.
_elements
);
372
if (
_elements
.Length == _count)
377
_elements
[_count] = element;
383
if (
_elements
.Length != _count)
392
return new PartialArrayEnumerator<TElement>(
_elements
, _count);
407
bool ICollection<TElement>.Contains(TElement item) => Array.IndexOf(
_elements
, item, 0, _count) >= 0;
410
Array.Copy(
_elements
, 0, array, arrayIndex, _count);
414
int IList<TElement>.IndexOf(TElement item) => Array.IndexOf(
_elements
, item, 0, _count);
429
return
_elements
[index];
System\Linq\Join.cs (1)
64
TInner[] elements = g.
_elements
;
System\Linq\Lookup.cs (2)
168
span[index] = resultSelector(g._key, g.
_elements
);
190
yield return resultSelector(g._key, g.
_elements
);
System\Linq\Lookup.SpeedOpt.cs (1)
24
array[index] = resultSelector(g._key, g.
_elements
);