Problems when serializing object to XML

0

After serializing an object to XML, some properties disappear. These objects were automatically generated with add references services and do not have the [System.Xml.Serialization.XmlIgnoreAttribute ()]

but are not appearing in XML after the object is serialized.

Has anyone ever had this problem? any idea how to solve it?

The source I am using for this test is in git link

    
asked by anonymous 25.01.2018 / 14:00

1 answer

0

I've figured out how to solve the problem so I'll leave it to others I might need.

All properties that have "Specified" must be set with true so that it can be serialized and contained in XML, otherwise it will be removed.

Properties that do not contain "Specified" will always be in XML.

    
25.01.2018 / 15:49