[Mono-bugs] [Bug 415644] Enumerable.Take() invokes IEnumerator<T>.MoveNext() too many times.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 7 22:51:22 EDT 2008


User jpryor at novell.com added comment

--- Comment #2 from Jonathan Pryor <jpryor at novell.com>  2008-08-07 20:51:22 MDT ---
Created an attachment (id=232387)
 --> (https://bugzilla.novell.com/attachment.cgi?id=232387)
Better, exception-safe patch.

Use a `using' block to ensure that the enumerator is properly disposed, even if
an exception is generated...

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

More information about the mono-bugs mailing list