Created
April 27, 2012 12:20
-
-
Save simoneb/2508758 to your computer and use it in GitHub Desktop.
Async IO the simple way
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
using(var c = new WebClient()) | |
{ | |
c.DownloadStringCompleted += (_, r) => Console.WriteLine(r.Result); | |
c.DownloadStringAsync(new Uri("http://www.google.at")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment