Reputation: 3
I am developing rest wcf service using linq to SQL. I am very new to wcf services. The problem I am facing is my web service output xml sorts my tags in ascending order and I don't want that can anybody give me some suggestions why do the web service sorts the tags in alphabetical order?
Upvotes: 0
Views: 158
Reputation: 364249
Serializing members in alphabetical order is default behavior of DataContractSerializer
. If you want different order you must set Order
in DataMember
attribute for every property.
Upvotes: 1