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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to