C#中的几个实用的代码

创建xml对应的对象类 根节点,对应类名 [XmlRoot("ComponentLog ")] public class ComponentLog{ } 其他节点,对应属性名 [XmlElement("LogCategory")] public string logCategory { get; set; } 也可以对应集合(如果同一节点有多个的话) [XmlElement("LogContent
相关文章
相关标签/搜索