DO NOT set DataMember.Order property to Int32.MaxValue when using DataContractSerializer

The issue Today I‘m investigating a WCF compatibility issue reported by a customer. The scenario is: The customer has a WCF service running on a machine with .NET 4.0, and a WCF client running on another machine with .NET 4.0 and everything works fine. Then the customer upgrades the client machine to .NET 4.5 and…


Customizing .NET XML serialization process

.NET XML serialization is very convenient and useful, it will generate a dynamic assembly to perform the serialization and deserialization, you can even create an XML serialization assembly by using SGen.exe in advance to improve the startup performance.   However, in some rare cases you might want to fine tune the generated XML serialization assembly….