Is it possible that DataContractSerializer
wrongly deserializes an object if the fields are not in the \"correct\" (whatever that means) order?
The cla
To be eligible for correct serialization / serialization by the DataContractSerializer
, all of the following must be true.
SerializableAttribute
or DataContractAttribute
set;DataMemberAttribute
set;IExtensibleDataObject
;DataMemberAttribute
.So, the order of the declaration does matter. If members are not in alphabetical order, they are skipped. Look up this answer at StackOverflow for an example, perhaps it applies to your case.