[Mono-bugs] [Bug 707434] XmlSerializer Order attribute check is checking for this on XmlAttribute

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 21 12:43:03 EDT 2011


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

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


scott fluto <srfcanada at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |srfcanada at hotmail.com

--- Comment #1 from scott fluto <srfcanada at hotmail.com> 2011-07-21 16:43:02 UTC ---
by modifying XmlReflectionImporter.cs 
line 791:
from: if (atts.XmlIgnore) continue;
to:   if (atts.XmlIgnore || atts.XmlAttribute != null) continue;

and line 808:
from: if (atts.XmlIgnore) continue;
to:   if (atts.XmlIgnore || atts.XmlAttribute != null) continue;

this will fix the problem but it depends on what the purpose of the
GetReflectionMembers method is, if it should just return all Xml decorators on
all field/properties then maybe you should add a restriction list that you can
pass into the method to only return the decorators that you are interested in ,
like XmlElement since right now with the above patch, this will fix it for
xmlattribute but you could still have a problem with other xml decorator
attributes since the Order type is only applicable to XmlElements.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list