Question Details

No question body available.

Tags

c# .net xml xml-serialization

Answers (1)

January 9, 2026 Score: 2 Rep: 30,326 Quality: Low Completeness: 40%

You can ignore the property in the base type by using the XmlAttributeOverrides class:

var attrs = new XmlAttributes { XmlIgnore = true }; var attrOs = new XmlAttributeOverrides(); attrOs.Add(typeof(TimeType), "Value", attrs); XmlSerializer s = new XmlSerializer(typeof(InvoiceType), attrOs);