public static PatchInfoReader Download(string address) { PatchInfoReader patchInfoReader; using (MemoryStream memoryStream = new MemoryStream((new MyWebClient()).DownloadData(address))) { patchInfoReader = PatchInfoReader.Load(XDocument.Load(memoryStream)); } return(patchInfoReader); }
public static PatchInfoReader Load(string fileName) { return(PatchInfoReader.Load(XDocument.Load(fileName))); }