[Mono-bugs] [Bug 699747] Binary Serialization De-serialization of Dictionary

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 15 18:59:35 EDT 2011



Robert Jordan <robertj at gmx.net> changed:

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

--- Comment #1 from Robert Jordan <robertj at 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

For example:

public class SpecialFolderComparer :

    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.

More information about the mono-bugs mailing list