Loading
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 attend5days leftRegister
Santhakumar MunuswamyRank #128 · 17.3K reputationPosted Jun 17, 2015, 7:39 PM EDT
Manoj BhoirRank #599 · 4K reputationPosted Jun 17, 2015, 8:55 PM EDT
Delegates have the following properties:
-
-
-
-
-
For more details please check these links :Delegates are like C++ function pointers but are type safe.
Delegates allow methods to be passed as parameters.
Delegates can be used to define callback methods.
Delegates can be chained together; for example, multiple methods can be called on a single event.
Methods do not have to match the delegate type exactly. For more information, see Using Variance in Delegates (C# and Visual Basic).
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 17, 2015, 9:15 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 17, 2015, 9:20 PM EDT
Sujeet SumanRank #790 · 2.9K reputationPosted Jun 17, 2015, 9:34 PM EDT
There are 3 steps to create a delegate:
Declaration
Instrantiation
Invocation
There are 3 types of delegate:
Singlecast delegate
Multicast delegate
Generic delegate
By the help of BeginInvoke() and EndInvoke() we can call a method asynchronously.
Munesh SharmaRank #174 · 13.9K reputationPosted Jun 17, 2015, 9:36 PM EDT