3 writes to childCount
System.Windows.Forms (3)
winforms\Managed\System\WinForms\TreeNode.cs (2)
1639childCount++; 1792parent.childCount--;
winforms\Managed\System\WinForms\TreeNodeCollection.cs (1)
342owner.childCount++;
47 references to childCount
System.Windows.Forms (47)
winforms\Managed\System\WinForms\TreeNode.cs (37)
433if (childCount == 0) return null; 653if (childCount == 0) return null; 654return children[childCount-1]; 1087if (childCount > 0) { 1093if (compare.Compare(children[childCount-1].Text, nodeText) <= 0) 1094index = childCount; 1097for (iMin = 0, iLim = childCount; iMin < iLim;) { 1111for (iMin = 0, iLim = childCount; iMin < iLim;) { 1141if (childCount > 0) { 1142TreeNode[] newOrder = new TreeNode[childCount]; 1146for (int i = 0; i < childCount; i++) { 1148for (int j = 0; j < childCount; j++) { 1170for (int i = 0; i < childCount; i++) { 1172for (int j = 0; j < childCount; j++) { 1233if (tv != null && childCount > MAX_TREENODES_OPS) { 1239while(childCount > 0) { 1240children[childCount - 1].Remove(true); 1300if (childCount > 0) { 1301node.children = new TreeNode[childCount]; 1302for (int i = 0; i < childCount; i++) 1336if (!ignoreChildren && childCount > 0) { 1338for (int i = 0; i < childCount; i++) { 1510else if (childCount + num > children.Length) { 1511int newSize = childCount + num; 1513newSize = childCount * 2; 1516System.Array.Copy(children, 0, bigger, 0, childCount); 1582for (int i = 0; i < childCount; i++) { 1618int total = childCount; 1620for (int i = 0; i < childCount; i++) 1635for (int i = childCount; i > index; --i) { 1745for (int i = childCount - 1; i >= 0; i--) 1780for (int i = 0; i < childCount; i++) 1785for (int i = index; i < parent.childCount-1; ++i) { 1791parent.children[parent.childCount - 1] = null; 1874si.AddValue("ChildCount", childCount); 1876if (childCount > 0) { 1877for (int i = 0; i < childCount; i++) {
winforms\Managed\System\WinForms\TreeNodeCollection.cs (10)
64if (index < 0 || index >= owner.childCount) { 70if (index < 0 || index >= owner.childCount) 125return owner.childCount; 250owner.Nodes.FixedIndex = owner.childCount; 339node.index = owner.childCount; 471if (index > owner.childCount) index = owner.childCount; 581if (owner.childCount > 0) { 582System.Array.Copy(owner.children, 0, dest, index, owner.childCount); 627return new WindowsFormsUtils.ArraySubsetEnumerator(owner.children, owner.childCount);