[Mono-bugs] [Bug 372780] sgen.exe generates invalid XmlSerializerContract

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 21 01:10:35 EDT 2008


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

User dbera.web at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=372780#c4





--- Comment #4 from D Bera <dbera.web at gmail.com>  2008-03-20 23:10:34 MST ---
#3 is the generated source file for the assembly from #2 :)
Take a look at #3:XmlSerializerContract (e.g. GetSerializer) and you will
notice the same empty string used as the key for everything.

As long as you put something meaningful, it should work (*). It definitely
works by putting the typename and I am sure the fix above is the right fix (I
didnt patch XmlReflectionImporter since building and patching sgen.cs was very
easy :).

(*) I could not find in MSDN docs what the hashtable key should be; it only
says the different serializers should be in the hashtable, so I guess any
meaningful key should work.


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