6 writes to _children
System.Windows.Forms (6)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (6)
1233_children = newOrder; 1267_children = newOrder; 1323_children = []; 1381node._children = new TreeNode[_childCount]; 1612_children = new TreeNode[size]; 1624_children = bigger;
41 references to _children
System.Windows.Forms (41)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (35)
381public TreeNode? FirstNode => _childCount == 0 ? null : _children[0]; 652return _children[_childCount - 1]; 1138if (compare.Compare(_children[_childCount - 1].Text, nodeText) <= 0) 1148if (compare.Compare(_children[iT].Text, nodeText) <= 0) 1168if (sorter.Compare(_children[iT] /*previous*/, node/*current*/) <= 0) 1209if (_children[j] is null) 1220if (compare.Compare(_children[j].Text, _children[min].Text) <= 0) 1227newOrder[i] = _children[min]; 1228_children[min] = null!; 1243if (_children[j] is null) 1254if (sorter.Compare(_children[j] /*previous*/, _children[min] /*current*/) <= 0) 1261newOrder[i] = _children[min]; 1262_children[min] = null!; 1320_children[_childCount - 1].Remove(true); 1384node.Nodes.Add((TreeNode)_children[i].Clone()); 1427if (tv.SelectedNode == _children[i]) 1432_children[i].DoCollapse(tv); 1433_children[i].Collapse(); 1610if (_children is null || _children.Length == 0) 1614else if (_childCount + num > _children.Length) 1623Array.Copy(_children, 0, bigger, 0, _childCount); 1696_children[i].ExpandAll(); 1759total += _children[i].GetNodeCount(true); 1794(_children[i] = _children[i - 1])._index = i; 1797_children[index] = node; 1917_children[i].Realize(true); 1951_children[i].Remove(false); 1960(_parent._children[i] = _parent._children[i + 1])._index = i; 1964_parent._children[_parent._childCount - 1] = null; 2085si.AddValue($"children{i}", _children[i], typeof(TreeNode));
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (6)
38return _owner._children[index]; 47TreeNode actual = _owner._children[index]; 339_owner._children[node._index] = node; 587Array.Copy(_owner._children, 0, dest, index, _owner._childCount); 623if (_owner._children is not null) 625return new ArraySubsetEnumerator(_owner._children, _owner._childCount);