Explain to me delegates please!!!!!!!!!!!!!!!!!!!!!!
To me it seems its just like method.
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.
VulpesPosted Apr 22, 2012, 5:27 AM
The way I tend to think of a delegate is as a list of methods with the same signature all of which can be invoked together by invoking the delegate itself.
jnmsyPosted Apr 24, 2012, 1:17 AM
The following videos may help you..
http://www.bestdotnettraining.com/Online/Training/CSharp/Delegates-Events/70
Sam HobbsPosted Apr 23, 2012, 1:53 PM
VulpesPosted Apr 23, 2012, 7:25 AM
jnmsyPosted Apr 23, 2012, 6:38 AM
The following videos may help you http://www.bestdotnettraining.com/Online/Training/SQL-Server/Stored-Procedures/155
Nitesh KejriwalPosted Apr 23, 2012, 2:32 AM
Sam HobbsPosted Apr 22, 2012, 6:51 PM
Sure a MulticastDelegate provides a list of delegates but it is only one way of using delegates. It has nothing to do with the definition of what a delegate is except as an example of how delegates can be used.
VulpesPosted Apr 22, 2012, 5:07 PM
Sam HobbsPosted Apr 22, 2012, 4:07 PM
Sam HobbsPosted Apr 22, 2012, 4:05 PM
In programs, we could give a constant value for something. For example we could give the value 99. Then the program will always use 99. Or we could give a symbolic name and then assign a different value many times. The value might be the same during a single execution or the value could change many times during execution.
We use delegates to allow us to refer to methods symbolically. The actual instance of the method can change. We can have a class that has a delegate and each instance of the class can specify a different actual method. We can create the class and specify what method to use for the delegate and we can create another instance of the class and specify a totally different method. So each of the two instances might do two different things depending on what was specified for the delegate.
This question is asked at least once a month. There are many previous answers in other threads and there are articles in this web site.
Prime bPosted Apr 22, 2012, 2:29 PM
Prime bPosted Apr 21, 2012, 8:11 PM
VulpesPosted Apr 21, 2012, 6:56 PM
Prime bPosted Apr 21, 2012, 4:44 PM
Satyapriya NayakPosted Apr 21, 2012, 9:39 AM
Please refer Our recommended articles
http://www.c-sharpcorner.com/UploadFile/72d20e/concept-of-delegate-in-C-Sharp2/
http://www.c-sharpcorner.com/uploadfile/6897bc/delegates-part-i/default.aspx
http://www.c-sharpcorner.com/uploadfile/6897bc/delegates-part-2/default.aspx
http://www.c-sharpcorner.com/UploadFile/Ashush/delegates-in-C-Sharp/
http://www.c-sharpcorner.com/UploadFile/fbulovic/ExploringDelegates11092005000646AM/ExploringDelegates.aspx
http://www.c-sharpcorner.com/UploadFile/pathumfer/learn-basics-of-delegates-in-C-Sharp/
http://www.c-sharpcorner.com/UploadFile/rmcochran/delegateStrategy06142007210551PM/delegateStrategy.aspx
Thanks
VulpesPosted Apr 21, 2012, 9:17 AM
SenthilkumarPosted Apr 21, 2012, 12:32 AM
For more info:
http://www.c-sharpcorner.com/Forums/Thread/169396/
http://geekswithblogs.net/joycsharp/archive/2008/02/15/simple-c-delegate-sample.aspx
http://www.codeproject.com/Articles/11657/Understanding-Delegates-in-C
Kunal VaishyaPosted Apr 20, 2012, 11:02 PM
http://www.dotnetperls.com/delegate