Skip to content

Instantly share code, notes, and snippets.

@simoneb
Created April 27, 2012 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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