[Mono-bugs] [Bug 546571] Better solution to EqualityComparer<TKey>.Default problem requested

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 13 21:31:37 EDT 2009


User jpryor at novell.com added comment

Jonathan Pryor <jpryor at novell.com> changed:

           What    |Removed                     |Added
                 CC|                            |jpryor at novell.com

--- Comment #1 from Jonathan Pryor <jpryor at novell.com>  2009-10-13 19:31:33 MDT ---
1. Not all uses of IEqualityComparer<T> need to be found and replaced.  You
only need to replace uses that require value types (structs) for T. 
IEqualityComparer<SomeReferenceType> is fine; IEqualityComparer<SomeValueType>
is not.

2. MonoTouch 1.1 improved support by including IEqualityComparer<T>
implementations for the builtin C# types (char, short, int, long, double,

In short, you don't need to replace all EqualityComparer<T>.Default uses, just
those that result in the death of your app when running on the actual device. 
This is likely to be considerably fewer than all uses, as value types are
usually less frequently used than reference types (FxDG guidelines), and most
of the remaining frequently used value types should be covered by (2).

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