IN CHAPTER 2, “CONTRACTS,” we discussed serialization by using
DataContract serialization to convert CLR types to standards-based XML for transmission between client and service. However, many scenarios exist where
DataContract serialization is not sufficient. This includes serialization of existing CLR types that do not support
DataContract serialization, legacy Web services, interoperability, code migration (such as .NET Remoting), and data shaping. Data shaping is the process of controlling the serialized XML of a .NET type used for performance optimization and contract-first development. In these situations, it is important to know how to work with the serialization facilities that WCF and the .NET Framework ...