2010-05-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Mon, 3 May 2010 08:57:37 +0000 (08:57 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Mon, 3 May 2010 08:57:37 +0000 (08:57 -0000)
commitce34e1d463dca5b0a22451b63949af02974f427e
tree538d018cef3d62cc4dd14f4f1a947b3c38cc47ef
parent1184864479738c0f8ea15e1993ce55dc65873c1a
2010-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeNodeCollection.cs: Instead of Sorting from SetupNode, do it
directly from Add (which uses AddSorted for this purpose) and Insert.
This way we first avoid a double sort, take advantage of our fast
version of Add for the default sorting, and also supress the call to Sort
when using our indexer setter (.Net ignores the sorting in this case).

svn path=/trunk/mcs/; revision=156602
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNodeCollection.cs