![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Xml
claymore1114
这个作者很懒,什么都没留下…
展开
-
Xml 串行化类型
新建一个类 Topic 如下:[Serializable] [XmlRoot("topic")] public class Topic { /// /// 主题id /// [XmlElement("id")] public string Id { get; set; } /// /// 昵称 /// [Xml原创 2010-10-26 14:02:00 · 1121 阅读 · 1 评论 -
xml配置文件映射到类
public class SiteLogo : ConfigurationElement { [ConfigurationProperty("logoTitle", IsRequired = true)] public string LogoTitle { get { return this["logoTitle"] as string; } set { this["logoTitle原创 2010-10-26 12:47:00 · 1337 阅读 · 0 评论 -
Xml帮助类
public static class XmlHelper { /// /// 将一个对象序列化为XML字符串 /// /// 要序列化的对象 /// 编码方式 /// 前缀 /// 命名空间 /// 序列化产生的XML字符串原创 2012-06-25 15:19:19 · 609 阅读 · 1 评论