Example #1
0
 /// <summary>
 /// 配置内容转换为Xml格式的字符串
 /// </summary>
 /// <returns></returns>
 public virtual string ToXml()
 {
     return(XmlSerializor.Serialize(this));
 }
Example #2
0
 /// <summary>
 /// 获取已设定的扩展类型实例
 /// </summary>
 /// <typeparam name="T">扩展的类型</typeparam>
 /// <returns>扩展类实例</returns>
 public T GetExtend <T>() where T : class
 {
     return(XmlSerializor.Deserialize <T>(ExtendRawXml));
 }