hi
How we can bind more than two methods using delegates explain with syntax
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 Jan 17, 2012, 4:35 AM
http://www.c-sharpcorner.com/Forums/Thread/153505/delegate-in-C-Sharp.aspx
Dhaval PatelPosted Jan 17, 2012, 3:44 AM
Please refer below link for Delegates.
http://www.c-sharpcorner.com/Blogs/7215/use-delegates-in-csharp.aspx
Thanks & Regards
Dhaval Patel
Jignesh TrivediPosted Jan 17, 2012, 3:42 AM
if two or more methods signature are same so you can you same delegate.
for more knowledge please refer.
http://msdn.microsoft.com/en-us/vstudio/bb508935
http://msdn.microsoft.com/en-us/library/ms173171%28v=vs.80%29.aspx
hope this help.
Mukesh KumarPosted Jan 17, 2012, 2:15 AM
Check this link http://www.codeproject.com/KB/cs/multicastdelegates.aspx
Hemant KumarPosted Jan 17, 2012, 1:04 AM
.Net delegates are all multi-cast delegates. When calling a multi-cast delegate that returns a value, only the last value will be returned. In order to process every return value, iterate the delegate list and invoke each delegate individually.
If one of the methods throws an exception, the delegate call will immediately stop and no other methods in the list will be called. http://en.csharp-online.net/Multi-cast_Delegate
http://www.dotnetjohn.com/articles.aspx?articleid=262