I am xml serializing an object and I cannot seem to change the order in which the fields are serialized.
I.e.
public class foo{
string a {get;set;}
string b {get;set;}
}
Comes out as (pseudocode)
<foo b="world" a="hello" />
When I need
<foo a="hello" b="world" />
Can anyone help?