[Mono-bugs] [Bug 332534] IEnumerator. MoveNext for Dictionary throws an Exception when it is at the end of the collection .

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 10 09:32:10 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=332534#c1





--- Comment #1 from Juraj Skripsky <juraj at hotfeet.ch>  2007-10-10 07:32:10 MST ---
Created an attachment (id=177399)
 --> (https://bugzilla.novell.com/attachment.cgi?id=177399)
proposed patch

The fix is trivial.
I didn't add a "if(at end) return false;" before the loop to not unnecessarily 
 penalize the common case (i.e. end not reached yet).

May I commit?


-- 
Configure bugmail: https://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