File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/System.Windows.Forms/src/System/Windows/Forms Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ internal TreeNodeImageIndexer StateImageIndexer
95
95
internal int index ; // our index into our parents child array
96
96
internal int childCount ;
97
97
// this array should not be optimized as a list because we are inserting into the middle of it, not appending.
98
- internal TreeNode [ ] children = [ ] ;
98
+ internal TreeNode [ ] children ;
99
99
internal TreeNode parent ;
100
100
internal TreeView treeView ;
101
101
private bool expandOnRealization ;
@@ -1379,7 +1379,7 @@ internal void Clear()
1379
1379
children [ childCount - 1 ] . Remove ( true ) ;
1380
1380
}
1381
1381
1382
- children = [ ] ;
1382
+ children = null ;
1383
1383
1384
1384
if ( tv is not null && isBulkOperation )
1385
1385
{
@@ -1672,7 +1672,7 @@ internal void EnsureCapacity(int num)
1672
1672
size = 4 ;
1673
1673
}
1674
1674
1675
- if ( children is null || children . Length == 0 )
1675
+ if ( children is null )
1676
1676
{
1677
1677
children = new TreeNode [ size ] ;
1678
1678
}
You can’t perform that action at this time.
0 commit comments