Format:
Recent snippets matching tags of APM
Func<int, int> invoker = ...; var ar = invoker.BeginInvoke(42, ar => { //We need to retrieve the delegate and the state: AsyncResult realAR = (AsyncResult)ar; int typedState = (int)ar.AsyncState; var invoker = (Func<int, int>)realAR.AsyncDelegate; //End the operation and print the result: int result = invoker.EndInvoke(ar);
28 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
