How to specify the order of XmlAttributes, using XmlSerializer

后端 未结 5 467
轮回少年
轮回少年 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:52

    xmlNode.Attributes.InsertAfter(newAttribute, refAttribute); 
    xmlNode.Attributes.InsertBefore(newAttribute, refAttribute);
    

提交回复
热议问题