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 -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -