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

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -