// See https://aka.ms/new-console-template for more information Console.WriteLine("Hello, World!"); using (var client = new HttpClient()) { var response = await client.GetAsync("https://www.example.com"); Console.WriteLine(await response.Content.ReadAsStringAsync()); }