Why is XmlSerializer's Deserialize() spitting out a child object which is a XmlNode[]?
问题 I'm using XmlSerializer to serialize and then deserialize a simple object. When I deserialize the object to my surprise I find a child object was not properly deserialized but instead turned into XmlNode[] . Here is very nearly the structure I've got: // This line I put in here as a way of sneaking into the XML the // root node's C# namespace, since it's not the same as the // deserializing code and the deserializing code seemed unable to // deserialize properly without knowing the Type (see