[Mono-bugs] [Bug 572084] HashSet<T>.SymmetricExceptWith assumes argument contains no duplicate items

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 19 18:05:25 EST 2010


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

http://bugzilla.novell.com/show_bug.cgi?id=572084#c1


--- Comment #1 from Chris Howie <cdhowie at gmail.com> 2010-01-19 23:05:23 UTC ---
Created an attachment (id=337543)
 --> (http://bugzilla.novell.com/attachment.cgi?id=337543)
Patch for this issue

This patch should fix the problem.  Based on the MSDN documentation, it first
checks if the enumerable is a HashSet<T> with the same IEqualityComparer<T>,
since that would be enough to ensure there are no duplicate items according to
the HashSet<T> being modified.  If it does not meet those criteria, then
Enumerable.Distinct(Comparer) is applied to the enumerable before processing.

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