How can I control the order of attributes in my xml serialization?

元气小坏坏 提交于 2020-01-01 11:26:24

问题


Is there a way to have the System.Xml.Serialization serialize attributes in a specific order? I am creating new xml export and the attributes are not in the same order currently. I know that attribute order should not matter, but I have to send this xml to servers that may not have such enlightened ideas.

来源:https://stackoverflow.com/questions/14225529/how-can-i-control-the-order-of-attributes-in-my-xml-serialization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!