1 回答

TA貢獻(xiàn)1802條經(jīng)驗(yàn) 獲得超6個(gè)贊
您已關(guān)閉以實(shí)現(xiàn)結(jié)果,您需要為每個(gè)屬性分配適當(dāng)?shù)念愵愋?,例?/p>
[XmlRoot(ElementName = "instance")]
public class Instance
{
[XmlElement(ElementName = "general")]
public InstanceGeneral General { get; set; } //<= InstanceGeneral Use Here
}
[XmlRoot(ElementName = "overview")]
public class Overview
{
[XmlElement(ElementName = "general")]
public OverviewGeneral General { get; set; } //<= OverviewGeneral Use Here
[XmlElement(ElementName = "instance")]
public Instance Instance { get; set; }
}
- 1 回答
- 0 關(guān)注
- 153 瀏覽
添加回答
舉報(bào)