How to specify the order of XmlAttributes, using XmlSerializer
Posted
by demoncodemonkey
on Stack Overflow
See other posts from Stack Overflow
or by demoncodemonkey
Published on 2010-04-12T15:47:01Z
Indexed on
2010/04/12
15:53 UTC
Read the original article
Hit count: 396
XmlElement has an "Order" attribute which you can use to specify the precise order of your properties (in relation to each other anyway) when serializing using XmlSerializer.
Is there a similar thing for XmlAttribute? I just want to set the order of the attributes from something like
<MyType end="bob" start="joe" />
to
<MyType start="joe" end="bob" />
This is just for readability, my own benefit really.
© Stack Overflow or respective owner