WCF DataContract DataMember order?
Solution 1:
decorate it with the Order Parameter in the DataMemberAttribute class:
[DataMember(Order = index)]
The reflector in the serializer puts it alphabetically. Unless when decorated like this:
[DataMember(Order = 0)]
public string FirstName { get; set; }
[DataMember(Order = 1)]
public string LastName { get; set; }
[DataMember(Order = 2)]
public string Email { get; set; }
[DataMember(Order = 3)]
public string Password { get; set; }
Read more here...