https://bugzilla.novell.com/show_bug.cgi?id=699747

https://bugzilla.novell.com/show_bug.cgi?id=699747#c1


Robert Jordan <robe...@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1 - Urgent                 |P3 - Medium
                 CC|                            |robe...@gmx.net
         AssignedTo|mono-bugs@lists.ximian.com  |robe...@gmx.net
           Severity|Critical                    |Normal

--- Comment #1 from Robert Jordan <robe...@gmx.net> 2011-07-15 22:59:34 UTC ---
You must provide an IEqualityComparer known to both runtimes because Mono does
not support MS.NET's internal
System.Collections.Generic.ObjectEqualityComparer.

For example:

[Serializable]
public class SpecialFolderComparer :
EqualityComparer<Environment.SpecialFolder>

{
    public override int GetHashCode (Environment.SpecialFolder obj)
    {
        return (int) obj;
    }
    public override bool Equals (Environment.SpecialFolder x,
Environment.SpecialFolder y)
    {
        return x == y;
    }
}

and then instantiate your dictionaries like this:

new Dictionary<Environment.SpecialFolder, string>(new SpecialFolderComparer());


Lowered prio.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to