Which of the following are requirements for a class to be serialized with XML serialization?

Which of the following are requirements for a class to be serialized with XML serialization?
A. The class must be public.
B. The class must be private.
C. The class must have a parameterless constructor.
D. The class must

have a constructor that accepts a SerializationInfo parameter.

Classes serialized with XML serialization must be public. For XML serialization to work, the class must have a parameterless constructor.

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.