Controlling order of serialization in C#

前端 未结 2 1395
抹茶落季
抹茶落季 2020-12-06 04:49

I\'m using an XmlSerializer to serialize an object and write it to a file. I\'ve had quite a bit of success with the serializer doing what I want it to do in terms of nesti

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-06 05:30

    XmlElementAttribute.Order, which controls "the explicit order in which the elements are serialized or deserialized".

提交回复
热议问题