/// <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)); }
/// <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)); }
public static object ReadFromXml(this Stream stream, Type type) { return(XmlAction.Read(stream, type)); }