Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Explain the definition about delegate?
Posted

 
Share this answer
 
Comments
girish sp 17-May-11 5:01am    
my 5
Sunasara Imdadhusen 17-May-11 6:24am    
thanks
 
Share this answer
 
Comments
girish sp 17-May-11 5:01am    
my 5
RaviRanjanKr 17-May-11 5:46am    
Thanks girish :)
Sunasara Imdadhusen 17-May-11 6:25am    
my vote of 5
Hope this[^] might help you.
 
Share this answer
 
Comments
girish sp 17-May-11 5:01am    
my 5
[no name] 17-May-11 5:29am    
Thanks Girish
Sunasara Imdadhusen 17-May-11 6:25am    
my vote of 5
[no name] 17-May-11 6:53am    
Thanks Sunasara.
Why dont you just do a search on the internet?
You are going to get tons and tons of definitions (and samples) on the delegate.
 
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
 
Delegate is same as function pointer in C..They also store the reference of a function
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-May-11 16:46pm    
My 1!
Not close enough. First, delegate instance is a class. Did not know that?
It support the list of invocation -- a whole list. If even the element of the list would be just one pointer, where get the "this" -- calls are done on non-static handlers as well. Do you know?

Please don't answer if you know nothing!
--SA

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