Delegates
Why we use Delegates? Is there any Substitute of Delegates?
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
Posted May 26, 2011, 8:22 PM EDT
Delegates are a kind of type safe function pointers which are actually declared as class derived from System.MulticastDelegate. There are few rules how to write that class. First you must declare .ctor and Invoke methods, if you like to have asynchronous callback involved there are two more methods just for that case BeginInvoke and EndInvoke.
http://www.c-sharpcorner.com/UploadFile/puranindia/CNetDelegatesEvents06152009024149AM/CNetDelegatesEvents.aspx
http://www.c-sharpcorner.com/UploadFile/6897bc/4154/
http://www.c-sharpcorner.com/UploadFile/6897bc/4162/
Vilas GiteRank #951 · 2.1K reputationPosted Jun 1, 2011, 6:32 AM EDT
Please refer below articles it really useful for your post.
http://www.c-sharpcorner.com/UploadFile/Ashush/Delegates02152008155757PM/Delegates.aspx
http://msdn.microsoft.com/en-us/library/aa288459(v=vs.71).aspx
http://www.java2s.com/Code/CSharp/Language-Basics/Asimpledelegateexample.htm-------------------------------------------------------------------------------------
If this reply solve your post…then "MARK AS ANSWER"!
Sandeep ShekhawatRank #2,439 · 577 reputationPosted Jun 1, 2011, 6:50 AM EDT
http://shekhawatsandeep.wordpress.com/2011/05/18/delegate/
Sam HobbsRank #107 · 20.5K reputationPosted Jun 1, 2011, 8:02 PM EDT