How to specify the order of XmlAttributes, using XmlSerializer

后端 未结 5 436
轮回少年
轮回少年 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条回答
  •  隐瞒了意图╮
    2020-12-20 18:28

    If you are creating the XML dynamically, try changing the order in which you append the attribute to the node and it should work :)

提交回复
热议问题