Tag Archives: XmlSerializer

Deserialize XML array to string[] and how to allow JSON to be deserialized into the same POCO class

How do you deserialize the classic XML array to an string[] type? The XML representation of an array is a list of elements: And the MyArray would normally be deserialized to an annoying class: The solution is to use the … Continue reading

Posted in .net, c#, General .NET | Tagged , , , , | 1 Comment

“sgen.exe” exited with code 1

What? I moved my project to my development server and wanted to build for production and this error came up. What is sgen.exe anyway? I found the answer on msdn: “The XML Serializer Generator creates an XML serialization assembly for … Continue reading

Posted in General .NET | Tagged , | 1 Comment