How To Exclude A Property From Xml Serialization?

user image

Muskan Anand

2 years ago

To override the default serialization of a field or property, create an XmlAttributes object, and set its XmlIgnore property to true . Add the object to an XmlAttributeOverrides object and specify the type of the object that contains the field or property to ignore, and the name of the field or property to ignore.

Recent Doubts

Close [x]