public static byte[] DownloadCached(this InstallerWindow ins, string url, string cached) { byte[] data = ins.ReadDataFromCache(cached); if (data != null) { return(data); } data = ins.Download(url); if (data == null) { return(null); } ins.WriteDataToCache(cached, data); return(data); }