试试[XmlArrayItem("c2")]
[XmlRoot("c1")] public class Class1 { [XmlArray("items")] [XmlArrayItem("c2")] public Class2[] Items; }
或[XmlType("c2")]
[XmlType("c2")] public class Class2 { [XmlAttribute("name")] public string Name; }