I am currently using XMLSerializer to serialize a list of my own class. One of the properties of the class is an instance of a private class that does not have a constructor without parameters, so the XML Serializer refuses to serialize the class. How can I get around this? I need this property to be serialized.
Is there a way to indicate how this class should be serialized?
We would like to stay with XML; Is there another XML serializer that I could use that doesn't have this problem?
Again, I apologize if this is a hoax, but I had no idea what to look for.
[EDIT] To clarify, I do not have access to the source of the private class.
source share