[Mono-dev] Xml serialization: wrong enum name encoding

Konstantin Triger kostat at mainsoft.com
Sun Feb 5 13:06:35 EST 2006

Hi Lluis,


We wrongly encode enum names, what causes this WebMethod to fail to


public enum MyEnum {


      /// <remarks/>









public MyEnum MyTest() {

      return MyEnum.tnsID;



Instead of expecting "tns:ID", we expect
XmlConvert.EncodeLocalName("tns:ID") and fail...


Please review the attached patch.



Konstantin Triger


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060205/6c0a4974/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XmlReflectionImporter.patch
Type: application/octet-stream
Size: 644 bytes
Desc: XmlReflectionImporter.patch
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060205/6c0a4974/attachment.obj 

More information about the Mono-devel-list mailing list