| Features | DataContractSerializer | XMLSerializer |
| Default mapping | All the data member in the class event it is private | All the public fields and Readable/Writable Properties |
| Need attribute | [DataContractAttribute], [DataMemberAttribute], [Serializable] | No |
| Order of data members | Alphabetic order | The order when declare them |
| Compatibility | remoting | asmx |
| Deserialzation | do nothing | Call default constructor |
Wednesday, 8 April 2009
DataContractSerializer V.S. XMLSerializer
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment