What are multiple delegates?Can 2 delegates in a class can refer to a same method?

Questions by dinesh_1212   answers by dinesh_1212

Showing Answers 1 - 12 of 12 Answers

sushma

  • Sep 23rd, 2007
 

Delegates are similar to function pointers of C++, they hold the address of a function, they hide the actual information.
.Net supports 2 types of delegates:
1)Single Cast Delegate
2)Multi Cast Delegate

Multi Cast Delegate holds the addresses of more than one function.

YES,two delegates can refer the same function i.e,two delegates can hold the address of same method.

Hai Sushma,
                   Thanks a lot for ur reply.
 
Still i have a doubt in this topic. 
Whether multiple delegates are also called as multi cast delegate OR multiple delegates is a separate topic.

Regards,
Dinesh

                    

  Was this answer useful?  Yes

sajeesh

  • Oct 17th, 2007
 

Multi cast delegates means a delegate can hold more than one methods but not vice versa.

  Was this answer useful?  Yes

multiple delegates and multicast delegates both are diffrent terms with diffrent aspects.
delegate having one property that it could have multiple delegates in it.it means single delegates contain multiple delegates definition while
in other case multicast delagates means single delagates contain refrence of several methods......

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions