示例#1
0
        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);
        }
示例#2
0
 public static PatchInfoReader Load(string fileName)
 {
     return(PatchInfoReader.Load(XDocument.Load(fileName)));
 }