How to specify the order of XmlAttributes, using XmlSerializer

后端 未结 5 464
轮回少年
轮回少年 2020-12-20 17:49

XmlElement has an \"Order\" attribute which you can use to specify the precise order of your properties (in relation to each other anyway)

5条回答
  •  猫巷女王i
    2020-12-20 18:42

    You don't, as attributes have no order in XML (section 3.1 of the XML recommendation says: "Note that the order of attribute specifications in a start-tag or empty-element tag is not significant.").

提交回复
热议问题