Which of the following attributes should you add to a member to prevent it from being serialized by XML serialization?

Which of the following attributes should you add to a member to prevent it from being serialized by XML serialization?
A. XmlType
B. XmlIgnore
C. XmlElement
D. XmlAttribute

Use the XMLIgnore attribute to prevent a member from being serialized during XML serialization.

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.