Hi,
Please suggest what are the delegates .where can i use delegates(which scenario) in real time.
Regards,
Balu reddy
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 19, 2012, 11:27 PM
Delegate is basically a function pointer.A delegate is a class that encapsulates a method signature.
delegates are object oriented and type-safe and very secure as they ensure that the signature of the method being called is correct. Delegate helps in code optimization.
Delegates are useful when you need to tell another piece of code how to do something. Events are the simplest example - separating the event (something happened) from how to handle it.
hope this help.
VulpesPosted Mar 19, 2012, 7:33 AM
For an even larger selection, check this list:
http://www.c-sharpcorner.com/Search/?sKeywords=delegate