Skip to content

Instantly share code, notes, and snippets.

@chrisntr
Created December 21, 2010 01:05
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 chrisntr/749319 to your computer and use it in GitHub Desktop.
Save chrisntr/749319 to your computer and use it in GitHub Desktop.
// My View Behind
var someAwesomeStuff = "More Awesome";
Bar((response) => {
Invoke(()=> { "neat " + response };
}
var moreAwesomeStuff = "Some Awesome";
// My other class
void Bar(Action<string> foo)
{
WebClient web;
web.DownloadStringCompleted(()=> {
foo("laa");
});
web.DownloadStringAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment