Improvements to the XmlSerializer in Whidbey

From Doug Purdy's  PDC '03  talk:

 

  • The new imperative model for the XmlSerializer opens up the previously unsupported interface IXmlSerializable. With the Whidbey release, the interface is now fully supported and the broken type import feature is fixed.
  • The XmlSerializer dynamically generates code for helper types and compiles them into a temporary assembly on the fly. This is a very expensive operation that always happens the first time you instantiate an XmlSerializer instance for given type when a program runs. When the program shuts down, the XmlSerializer will clean up the temporary assembly and has to go through the (expensive) code generation and compilation step again. Whidbey will add a helper tool that will allow pregen these serialization helper types deploy them together with your application.
  • The XmlSerializer will support serialization of classes based on Generics.

10 Comments

Comments have been disabled for this content.