Skip to content

Instantly share code, notes, and snippets.

@chrisntr
Created Dec 21, 2010
Embed
What would you like to do?
// 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