Delegates
hi
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
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Aug 27, 2012, 10:22 PM EDT
Shivanand ArurRank #920 · 2.3K reputationPosted Sep 25, 2012, 9:50 AM EDT
Delegates act like Function Pointers... By that I mean that they basically point to a function/method and act like a method itself... Delegate is an object which are usually used to call events or methods... You can also call Multiple methods... Such Delegates are called as Multicast Delegates. Basically when you declare a delegate then a class of that Delegate is created internally... Its constructor accepts 2 parameters and stores the value in some hidden private variables... There are 3 things we should always remember.... "Declaration" "Instantiation" and "Invocation" of the delegate... The method at which the delegate points should always have the same return type and the number of parameters as the method... Hope this helps you...
PLEASE MARK THE ANSWER AS ACCEPTED IF IT HELPED YOU!!! Thanks.