xml serialization - Serialize nullable fields from an object c# -
I am trying to serialize an object which is empty field, if there is no data in the field The field has been removed from the serialized output. Does anybody suggest working on this? Is there a way to decide that empty fields have been emptied?
This is when "propertyname_specified = false"
apply XmlElementAttribute to you To do:
[XmlElement (IsNullable = true)] Public string DummyField {get; Set; }
Comments
Post a Comment