Deserialization XML to object with list in c#
问题 I want to deserialize XML to object in C#, object has one string property and list of other objects. There are classes which describe XML object, my code doesn't work (it is below, XML is at end of my post). My Deserialize code doesn't return any object. I think I do something wrong with attributes, could you check it and give me some advice to fix it. Thanks for your help. [XmlRoot("shepherd")] public class Shepherd { [XmlElement("name")] public string Name { get; set; } [XmlArray