8 writes to _size
System.Collections (8)
System\Collections\Generic\PriorityQueue.cs (8)
155_nodes = EnumerableHelpers.ToArray(items, out _size); 207_size = currentSize + 1; 415_size = count; 432_size = i; 488_size = i; 530int newSize = --_size; 577_size = 0; 650int lastNodeIndex = --_size;
31 references to _size
System.Collections (31)
System\Collections\Generic\PriorityQueue.cs (31)
158if (_size > 1) 167public int Count => _size; 199int currentSize = _size; 226if (_size == 0) 241if (_size == 0) 265if (_size == 0) 312if (_size != 0) 338if (_size != 0) 363if (_size != 0) 403if (collection is not null && (count = collection.Count) > _nodes.Length - _size) 405Grow(checked(_size + count)); 408if (_size == 0) 437if (_size > 1) 466(count = collection.Count) > _nodes.Length - _size) 468Grow(checked(_size + count)); 471if (_size == 0) 575Array.Clear(_nodes, 0, _size); 613if (_size < threshold) 615Array.Resize(ref _nodes, _size); 693int lastParentWithChildren = GetParentIndex(_size - 1); 720Debug.Assert(0 <= nodeIndex && nodeIndex < _size); 752Debug.Assert(0 <= nodeIndex && nodeIndex < _size); 786Debug.Assert(0 <= nodeIndex && nodeIndex < _size); 789int size = _size; 834Debug.Assert(0 <= nodeIndex && nodeIndex < _size); 838int size = _size; 878ReadOnlySpan<(TElement Element, TPriority Priority)> nodes = _nodes.AsSpan(0, _size); 943public int Count => _queue._size; 966if (array.Length - index < _queue._size) 973Array.Copy(_queue._nodes, 0, array, index, _queue._size); 1018if ((uint)_index < (uint)localQueue._size)