Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai all,

What is delegate..? What is the use of it..?

What is difference between calling a function without delegate and with delegate..?
Is delegates calls a function asynchronously..?

wish to know more about..
Posted
Updated 10-Oct-11 19:08pm
v3

Delegate is a type that reference a method. here is nice tutorial that explain u better
delegate tutorial[^]
 
Share this answer
 
Comments
Pravin Patil, Mumbai 11-Oct-11 1:14am    
+5 for the link...
Delegates are mainly used for annonymous method call.
here is an Example
Anonymous Methods using Delegates
Delegates also work as function pointer as in C++.
Google Search is more better to understand Delegates.
 
Share this answer
 
v2
See this link.Internally there are another links in this one. Refer those also

http://forums.asp.net/t/1326720.aspx/1[^]
 
Share this answer
 
Refer this Article to know the use of Delegates:

6 important uses of Delegates and Events[^]

It will clear all your doubts.

hope it helps :)
 
Share this answer
 
Delegates is a type that reference Method. When it assigned by a method it behaves exactly same as that method. It can be used as parameters and can be returned a value. So it has same what are the methods have.

For more Read this article,

http://www.pathumf.blogspot.com/2011/11/delegates-in-c.html
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900