Skip to content

Instantly share code, notes, and snippets.

@simoneb
Created April 27, 2012 12:20
Show Gist options
  • Save simoneb/2508758 to your computer and use it in GitHub Desktop.
Save simoneb/2508758 to your computer and use it in GitHub Desktop.
Async IO the simple way
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