What is Asynchronous call and how it can be implemented using delegates?

 Posted by Tripati_tutu on 1/25/2011 | Category: C# Interview questions | Views: 4776 | Points: 40

The Asynchronous calls wait for a method before the program flow is resumed to complete its task. In an asynchronous call, the program flow continues while the method is executes.

//create an object for a function

Function Fun = new Function();

//create delegate

Delegate Del = new Delegate(Fun.Function);

//invoke the method asynchronously

IAsyncResult call = Delegate.Invoke();

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Ddd on: 1/26/2011 | Points: 10
Could you please provide some code snippet for that?
For example:- Making Asynchronous calls in Web Service, SQL Server queries.

Login to post response