To improve the performance of XML serialization, you can generate assemblies before serialization using the XML Serializer Generator Tool (Sgen.exe). When such an assembly is loaded, the XmlSerializer uses the properties of the XmlSerializerImplementation interface to query the contained serializer or serializers.