我有以下课程
public class Notifications : List<Notification> { }
不幸的是,当它被序列化时,它看起来像
<ArrayOfNotification>
<Notification>
...
我怎样才能让那个根节点成为Notifications?我在该类上尝试了一些不同的属性,但没有一个可以编译。
我有以下课程
public class Notifications : List<Notification> { }
不幸的是,当它被序列化时,它看起来像
<ArrayOfNotification>
<Notification>
...
我怎样才能让那个根节点成为Notifications?我在该类上尝试了一些不同的属性,但没有一个可以编译。