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 -

delphi - Mouseover hint for TChart series value -

How to Create Master-Details view using Asp.Net MVC framework -