Click here to Skip to main content
16,017,297 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I want to ask that delegate is used for type safe expression or tell me what are the uses of delegates in c# only
Posted

This is gibberish: "type safe expression".

About delegates, see this discussion: What is the difference between Event and Delegates[^].

—SA
 
Share this answer
 
Comments
Sandeep Mewara 22-Apr-11 2:19am    
5!

Looks like I was typing the same thing that you posted...
Sergey Alexandrovich Kryukov 22-Apr-11 2:24am    
Thank you, Sandeep.
--SA
Did you happen to look at standard MSDN overview: http://msdn.microsoft.com/en-us/library/17sde2xt.aspx[^]?
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Apr-11 2:26am    
5. By the way, this MSDN article does not describe things with enough detail (look my comment by that reference, for example), but for first look...
--SA
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
 

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