Serialization of derived List properties

Derived from List class properties are not serialized. So if you have

public class Mapping : List<string>
{
	public string Name {get; set;}
}

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:

public class Mapping : IEnumerable<string>
{
	public string Name {get; set;}
}

will cause XmlSerializer to omit Name property values from serialization.

https://forums.asp.net/t/1267870.aspx?Serialization+of+derived+List+T+properties