13 writes to root
System.Collections (13)
System\Collections\Generic\SortedSet.cs (10)
98root = sortedSet.root.DeepClone(this.count); 124root = ConstructRootFromSortedArray(elements, 0, count - 1, null); 308root = new Node(item, NodeColor.Black); 502root = null; 650root = newChild; 859root = dummy.root; 908root = null; 910root = ConstructRootFromSortedArray(merged, 0, c - 1, null); 1037root = null; 1039root = ConstructRootFromSortedArray(merged, 0, c - 1, null);
System\Collections\Generic\SortedSet.TreeSubSet.cs (3)
46root = _underlying.FindRange(_min, _max, _lBoundActive, _uBoundActive); // root is first element within range 107root = null; 318root = _underlying.FindRange(_min, _max, _lBoundActive, _uBoundActive);
35 references to root
System.Collections (35)
System\Collections\Generic\SortedSet.cs (23)
96Debug.Assert(sortedSet.root != null); 98root = sortedSet.root.DeepClone(this.count); 184if (root == null) 195Node? current = root; 232if (root == null) 238processQueue.Enqueue(root); 305if (root == null) 317Node? current = root; 334root.ColorBlack(); 374root.ColorBlack(); 383if (root == null) 400Node? current = root; 496root?.ColorBlack(); 695Node? current = root; 726Node? current = root; 747Node? current = root; 859root = dummy.root; 1466if (root == null) 1471Node current = root; 1487if (root == null) 1492Node current = root; 1541if (root != null) 1874Node? node = _tree.root;
System\Collections\Generic\SortedSet.TreeSubSet.cs (12)
62Debug.Assert(this.versionUpToDate() && root == _underlying.FindRange(_min, _max)); 72Debug.Assert(versionUpToDate() && root == _underlying.FindRange(_min, _max)); 87Debug.Assert(versionUpToDate() && root == _underlying.FindRange(_min, _max)); 129Node? current = root; 160Node? current = root; 189if (root == null) 197Node? current = root; 248if (root == null) 254processQueue.Enqueue(root); 285Debug.Assert(this.versionUpToDate() && root == _underlying.FindRange(_min, _max)); 302Debug.Assert(this.versionUpToDate() && root == _underlying.FindRange(_min, _max)); 359Debug.Assert(versionUpToDate() && root == _underlying.FindRange(_min, _max));