Created
December 8, 2017 22:38
-
-
Save negativeeddy/22f5b04e46c9514051a26994788f2434 to your computer and use it in GitHub Desktop.
async Main method in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static async Task Main(string[] args) | |
{ | |
HttpClient client = new HttpClient(); | |
string result = await client.GetStringAsync("http://www.bing.com"); | |
Console.WriteLine(result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment