Use of SGEN.exe to avoid common XmlSerializer performance pitfalls

This week, I encountered a test scenario which makes use of an XmlSerializer on it’s startup path. Unfortunately, MSDN’s documentation for the type is not clear on the performance impact of using an XmlSerializer. The documentation on introducing XML serialization, found here, actually mentions the solution, but it also does not state what the problem…

1