Hi,
Please suggest what are the delegates .where can i use delegates(which scenario) in real time.
Regards,
Balu reddy
Delegates(c#)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 19, 2012, 3:33 AM EDT
For an even larger selection, check this list:
http://www.c-sharpcorner.com/Search/?sKeywords=delegate
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 19, 2012, 7:27 PM EDT
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.