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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 13 12:28:58 EDT 2009


           Summary: Better solution to EqualityComparer<TKey>.Default
                    problem requested
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: ed at anuff.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv: Gecko/20090824 Firefox/3.5.3

When porting a large body of code to MonoTouch, having to find every instance
where a generic collection is used and manually adding IEqualityComparer<TKey>
is tedious.  Also, some collections methods use EqualityComparer<TKey>.Default
without providing an option for specifying your own comparer.  A better
solution would be to provide a static SetDefaultForType method to
EqualityComparer that takes a type and a comparer instance to use for that type
and uses that rather than trying to use Reflection to instantiate a new type.

Reproducible: Always

Steps to Reproduce:

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