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….