How can I tell to the XmlSerializer to serialize a string property that is empty?
[XmlElement("description")]
public string Description
{
get;
set;
}
How can I tell to the XmlSerializer to serialize a string property that is empty?
[XmlElement("description")]
public string Description
{
get;
set;
}
i did not try it, but "IsNullable" of XmlElementAttribute maybe helps with strings