问题
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