When a class is inherited from List, XmlSerializer doesn't serialize other attributes?

This is by design. I don't know why this decision was made but it is stated in the documentation.

This is by design. I don't know why this decision was made, but it is stated in the documentation: Classes that implement ICollection or IEnumerable. Only collections are serialized, not public properties.(Look under "Items that can be serialized" section).

Someone has filed a bug against this, but it won't be changed - here, Microsoft also confirms that not including the properties for classes implementing ICollection is in fact the behaviour of XmlSerializer. A workaround would be to either: Implement IXmlSerializable and control serialization yourself. Or Change MyClass so it has a public property of type List (and don't subclass it).

Or Use DataContractSerializer, which handles this scenario.

I thought that would be the answer but I was just wanted to make sure, I asked cuz I couldn't find it in the documentation, Thank you – Esam Bustaty Feb 21 at 17:54.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions