Multiple choice technology programming languages

All the members of the class which are to be serialized using xml serialization should be declared public.

  1. True.

  2. False

  3. True , if the Serializable attribute is not used.

  4. The members have to be protected.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The .NET XmlSerializer requires all classes, fields, and properties to be declared public to perform XML serialization. Private, protected, or internal members are completely ignored during serialization, making the public declaration requirement true and correct.