8 writes to _size
System.Collections (8)
System\Collections\Generic\PriorityQueue.cs (8)
160_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; 652int lastNodeIndex = --_size;
32 references to _size
System.Collections (32)
System\Collections\Generic\PriorityQueue.cs (32)
163if (_size > 1) 172public 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); 614if (_size < threshold) 616Array.Resize(ref _nodes, _size); 695int lastParentWithChildren = GetParentIndex(_size - 1); 722Debug.Assert(0 <= nodeIndex && nodeIndex < _size); 754Debug.Assert(0 <= nodeIndex && nodeIndex < _size); 788Debug.Assert(0 <= nodeIndex && nodeIndex < _size); 791int size = _size; 836Debug.Assert(0 <= nodeIndex && nodeIndex < _size); 840int size = _size; 880ReadOnlySpan<(TElement Element, TPriority Priority)> nodes = _nodes.AsSpan(0, _size); 945public int Count => _queue._size; 968if (array.Length - index < _queue._size) 975Array.Copy(_queue._nodes, 0, array, index, _queue._size); 1015if (_version == localQueue._version && ((uint)_index < (uint)localQueue._size)) 1032_index = _queue._size + 1;