BetterDiscordWI.panels.Panel2.DownloadResource C# (CSharp) Метод

DownloadResource() приватный Метод

private DownloadResource ( string resource, string url ) : void
resource string
url string
Результат void
        private void DownloadResource(string resource, string url)
        {
            AppendLog("Downloading Resource: " + resource);

            WebClient webClient = new WebClient {Headers = {["User-Agent"] = "Mozilla/5.0"}};

            webClient.DownloadFile(new Uri(url), $"{Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}\\BetterDiscord\\temp\\{resource}");
        }