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; 856root = dummy.root; 905root = null; 907root = ConstructRootFromSortedArray(merged, 0, c - 1, null); 1034root = null; 1036root = 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(); 692Node? current = root; 723Node? current = root; 744Node? current = root; 856root = dummy.root; 1463if (root == null) 1468Node current = root; 1484if (root == null) 1489Node current = root; 1538if (root != null) 1871Node? 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));