2 writes to _array
System.Collections.NonGeneric (2)
System\Collections\Queue.cs (2)
58_array = new object[capacity]; 287_array = newarray;
46 references to _array
System.Collections.NonGeneric (46)
System\Collections\Queue.cs (46)
87int firstPart = (_array.Length - _head < numToCopy) ? _array.Length - _head : numToCopy; 88Array.Copy(_array, _head, q._array, 0, firstPart); 91Array.Copy(_array, 0, q._array, _array.Length - _head, numToCopy); 110Array.Clear(_array, _head, _size); 113Array.Clear(_array, _head, _array.Length - _head); 114Array.Clear(_array, 0, _tail); 143int firstPart = (_array.Length - _head < numToCopy) ? _array.Length - _head : numToCopy; 144Array.Copy(_array, _head, array, index, firstPart); 147Array.Copy(_array, 0, array, index + _array.Length - _head, numToCopy); 154if (_size == _array.Length) 156int newcapacity = (int)((long)_array.Length * (long)_growFactor / 100); 157if (newcapacity < _array.Length + MinimumGrow) 159newcapacity = _array.Length + MinimumGrow; 164_array[_tail] = obj; 165_tail = (_tail + 1) % _array.Length; 185object? removed = _array[_head]; 186_array[_head] = null; 187_head = (_head + 1) % _array.Length; 201return _array[_head]; 227if (_array[index] == null) 230else if (_array[index] != null && _array[index]!.Equals(obj)) 234index = (index + 1) % _array.Length; 242return _array[(_head + i) % _array.Length]; 257Array.Copy(_array, _head, arr, 0, _size); 261Array.Copy(_array, _head, arr, 0, _array.Length - _head); 262Array.Copy(_array, 0, arr, _array.Length - _head, _tail); 278Array.Copy(_array, _head, newarray, 0, _size); 282Array.Copy(_array, _head, newarray, 0, _array.Length - _head); 283Array.Copy(_array, 0, newarray, _array.Length - _head, _tail); 432_currentElement = _q._array; 445_currentElement = _q._array; 461if (_currentElement == _q._array) 479_currentElement = _q._array;