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)
177
public IComparer<TPriority> Comparer =>
_comparer
?? Comparer<TPriority>.Default;
209
if (
_comparer
== null)
272
if (
_comparer
== null)
285
if (
_comparer
.Compare(priority, root.Priority) > 0)
367
if (
_comparer
== null)
378
if (
_comparer
.Compare(priority, root.Priority) > 0)
538
if (
_comparer
== null)
551
if (
_comparer
.Compare(lastNode.Priority, priority) < 0)
658
if (
_comparer
== null)
697
if (
_comparer
== null)
721
Debug.Assert(
_comparer
is null);
753
Debug.Assert(
_comparer
is not null);
756
IComparer<TPriority> comparer =
_comparer
;
787
Debug.Assert(
_comparer
is null);
835
Debug.Assert(
_comparer
is not null);
838
IComparer<TPriority> comparer =
_comparer
;