Sasha Sydoruk

Building a better mousetrap with XHTML, AJAX and RSS

IXmlSerializable and sgen.exe

If you really have to control your XmlSerialization - use IXmlSerializable.

I always knew that you can use xsd.exe to generate CS classes from XML schema, but I have never heard of sgen.exe.

From MSDN: The XML Serializer Generator(sgen.exe) creates an XML serialization assembly for types in a specified assembly in order to improve the startup performance of a XmlSerializer when it serializes or deserializes objects of the specified types.

Pretty awesome if you ask me.

No comments yet. Be the first.

Leave a reply