[Mono-bugs] [Bug 601789] Sorted TreeView.Nodes.Add(Node) should return the added node index, not the total node count

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun May 2 16:51:19 EDT 2010



--- Comment #1 from Thomas Goldstein <stifu at free.fr> 2010-05-02 20:51:18 UTC ---
Created an attachment (id=358465)
 --> (http://bugzilla.novell.com/attachment.cgi?id=358465)

This could have been a one-line change, but I took the liberty to rename local
variables to make them more explicit and improve consistency (res, pos =>
I also moved things around at one place just to make things more readable (so
as to do "nodes[index] = node" rather than "nodes[count] = node", which makes
more sense).

Please review and adapt as you see fit.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list