示例#1
0
 /// <summary> 从XML读取数据 </summary>
 /// <typeparam name="T"> 读取的数据类型 </typeparam>
 /// <param name="stream"> 包含数据的数据流 </param>
 /// <returns> Tpye = C , 返回为null的时候读取失败 </returns>
 public static T ReadFromStream <T>(this Stream stream)
 {
     return(XmlAction.Read <T>(stream));
 }
示例#2
0
 /// <summary> 从XML读取数据 </summary>
 /// <typeparam name="T"> 读取的数据类型 </typeparam>
 /// ///
 /// <param name="FullPath"> 包含数据的文件路径 </param>
 /// <returns> Tpye = C , 返回为null的时候读取失败 </returns>
 public static T ReadFromXml <T>(this string FullPath)
 {
     return(XmlAction.Read <T>(FullPath));
 }
示例#3
0
 public static object ReadFromXml(this Stream stream, Type type)
 {
     return(XmlAction.Read(stream, type));
 }