代码改变世界

随笔档案-2013年09月

c# XML序列化与反序列化

2013-09-12 16:18 by 追梦网络, 373 阅读, 收藏, 编辑
摘要: 序列化对象 public class People { [XmlAttribute("NAME")] public string Name { set; get; } [XmlAttribute("AGE")] public int Age { set; get; } } [XmlRoot("Root")] public class Student : People { [XmlElement("CLASS")] public string Class { set; get; } [XmlElement(" 阅读全文
点击右上角即可分享
微信分享提示