I know that in C# (and VB.Net) I can create a delegate, point this at a method and then use this delegate to run my method either synchronously or asynchronously. I know how to do this.
Sometimes I use a delegate to run a method asynchronously, and sometimes these methods have input parameters. To run my method asynchronously I call the delegates BeginInvoke
method, providing my input parameters, followed by "null, null".
I supply "null, null" as the final two parameters although Visual Studio's intellisense is suggesting I instead supply an AsyncCallback
object named callback followed by a second object simply named @object
as shown below.
What is an AsyncCallback
and how is it used, and what is the purpose of the other object named @object
suggested by intellisense?
Thanks