4 writes to _comparer
System.Collections (4)
System\Collections\Generic\PriorityQueue.cs (4)
72_comparer = InitializeComparer(null); 99_comparer = InitializeComparer(comparer); 119_comparer = InitializeComparer(comparer); 161_comparer = InitializeComparer(comparer);
16 references to _comparer
System.Collections (16)
System\Collections\Generic\PriorityQueue.cs (16)
177public IComparer<TPriority> Comparer => _comparer ?? Comparer<TPriority>.Default; 209if (_comparer == null) 272if (_comparer == null) 285if (_comparer.Compare(priority, root.Priority) > 0) 367if (_comparer == null) 378if (_comparer.Compare(priority, root.Priority) > 0) 538if (_comparer == null) 551if (_comparer.Compare(lastNode.Priority, priority) < 0) 658if (_comparer == null) 697if (_comparer == null) 721Debug.Assert(_comparer is null); 753Debug.Assert(_comparer is not null); 756IComparer<TPriority> comparer = _comparer; 787Debug.Assert(_comparer is null); 835Debug.Assert(_comparer is not null); 838IComparer<TPriority> comparer = _comparer;