Serialize property even empty
How can I tell to the XmlSerializer to serialize a string property that is empty?
[XmlElement("de开发者_开发技巧scription")]
public string Description
{
get;
set;
}
i did not try it, but "IsNullable" of XmlElementAttribute maybe helps with strings
精彩评论