我有一個代碼 [XmlRoot("user_list")]
public class UserList
{
public UserList() { Items = new List<User>(); }
[XmlAttribute("user")]
public List<User> Items{get; set; }
假設我有一個模型,我想填充數據,但不是一次填寫所有數據。 的模型是: public class SubPlayground
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("type")]
public string Type { get; set; }