[Mono-bugs] [Bug 601766] WinForms TreeView: foreach (TreeNode node in TreeNode.Nodes) loop behaves differently from .NET

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


http://bugzilla.novell.com/show_bug.cgi?id=601766

http://bugzilla.novell.com/show_bug.cgi?id=601766#c5


--- Comment #5 from Lex Li <lextudio at gmail.com> 2010-05-03 03:23:51 UTC ---
Thanks for fixing it. I just found a workaround that looks better :) so before
next Mono release, we can use this as a quick fix.

treeView1.Nodes.AddRange(root.Nodes.Cast<TreeNode>().ToArray());

-- 
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