Stu*_*ord 1 .net c# serialization parent-child
我似乎无法让这个工作,这是我的(剥离)代码: -
[XmlRoot("report")]
public class Report
{
[XmlArray("sections"), XmlArrayItem("section")]
public List<Section> Sections;
}
public class Section
{
public Report Report;
}
Run Code Online (Sandbox Code Playgroud)
我错过了什么吗?