GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#
Go To First  |  Previous Question  |  Next Question 
 C#  |  Question 394 of 436    Print  
What are multiple delegates?

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

  
Total Answers and Comments: 4 Last Update: May 27, 2008     Asked by: dinesh_1212 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 23, 2007 23:58:32   #1  
sushma        

RE: What are multiple delegates?Can 2 dele...
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.


 
Is this answer useful? Yes | No
September 28, 2007 11:12:07   #2  
dinesh_1212 Member Since: September 2007   Contribution: 2    

RE: What are multiple delegates?Can 2 dele...
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


 
Is this answer useful? Yes | No
October 17, 2007 07:06:39   #3  
sajeesh        

RE: What are multiple delegates?Can 2 dele...
Multi cast delegates means a delegate can hold more than one methods but not vice versa.
 
Is this answer useful? Yes | No
May 27, 2008 05:58:57   #4  
nikhilrawat23 Member Since: May 2008   Contribution: 15    

RE: What are multiple delegates?Can 2 delegates in a class can refer to a same method?
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......

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape