Serialization of derived List properties
Derived from List
class properties are not serialized.
So if you have
XmlSerializer
will not serialize Name
property value at all.
I’ve just found that XmlSerializer
does the same if class implements IEnumerable
So for class definition like below:
will cause XmlSerializer
to omit Name property values from serialization.
https://forums.asp.net/t/1267870.aspx?Serialization+of+derived+List+T+properties