//UpdateInfo updinfo = (UpdateInfo)DeserializeFromFile("http://mysite.ru/files/UpdateInfo.xml"); public static object DeserializeFromFile(string path) { var serializer = new XmlSerializer(typeof(UpdateTerminalInfo)); using (XmlReader reader = XmlReader.Create(path)) { return serializer.Deserialize(reader); } }
No comments:
Post a Comment
Note: only a member of this blog may post a comment.