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