Problems serializing object to XML

Asked

Viewed 87 times

0

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

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

Has anyone been through this problem? Any idea how to solve it?

The source I’m using for this test is in git https://github.com/ntfrigo/WinBetha2

Debuggando o processo

1 answer

0

I figured out how to solve the problem, so I’ll leave it documented for others who might need it.

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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.