[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


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


           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:1.9.1.3) 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:
1.
2.
3.

-- 
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