定义一个类[XmlElement("Key")]
public class KeyTextPair{
[XmlAttribute("name")]
public string KeyName{
set{} get{}
} [XmlText]
public string KeyValue{
set{} get{}
}
}List<Dictionary<string, KeyTextPair>> collection = new .....你直接序列化collection应该就可以实现了。
public class KeyTextPair{
[XmlAttribute("name")]
public string KeyName{
set{} get{}
} [XmlText]
public string KeyValue{
set{} get{}
}
}List<Dictionary<string, KeyTextPair>> collection = new .....你直接序列化collection应该就可以实现了。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货