public class Notifications : List<Notification> { }
不幸的是,当它被序列化时
<ArrayOfNotification> <Notification> ...
如何使该根节点 ?
尝试
using System.Xml.Serialization; ... [XmlType(TypeName="Notifications")] public class Notifications ...