How To: Specify the ORDER of attributes written to an XML file???

  • Thread starter Thread starter Steven Van Dyke
  • Start date Start date
S

Steven Van Dyke

I'm using XmlSerializer to write an simple class to an XML file. I expected
that the member data would be written out in the order it appeared in the
class, but it doesn't. Does anyone know what determines the order when a
class is deserialized? Any way to control the order?

Thanks,

Steve
 
There is no way to control the order.

The order should be alphabetical.

Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top