RE: MultiCastDelegate

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Richard Blewett [DevelopMentor] (richardb_at_NOSPAMdevelop.com)
Date: 11/12/04


To: microsoft.public.dotnet.languages.csharp
Date: Fri, 12 Nov 2004 03:18:39 -0800

There were two types of delegates in beta 1 of 1.0 but then they realised a single target delegate was really only a multicast delegate with only one entry in its invocation list and so simplified the model to what you see today.

 Regards

 Richard Blewett - DevelopMentor
 http://www.dotnetconsult.co.uk/weblog
 http://www.dotnetconsult.co.uk

   Hi Richard,
 
 I agree that this is indeed the case as is evident in the IL.
 
 But ideally, I don't feel this should be the case. I feel that it should be
 the way as described in the MSDN page @: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemMulticastDelegateClassTopic.asp
 
 But for some reason, it seems it is not as is documented.
 
 HTH,
 Rakesh Rajan



Relevant Pages

  • RE: MultiCastDelegate
    ... ' This delegate is declared as a void, ... Regards, ... > Richard Blewett - DevelopMentor ... > Rakesh Rajan ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Newby delegate problem - syntax problems I guess
    ... Thanks Truong Hong Thi and Richard Blewett [DevelopMentor], that was it, I ... had to instantiate an new delegate of the given type. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MulticastDelegate
    ... A Multicast Delegate is a Delegate that can contain multiple methods in its ... Delegate and that are available to developers. ... The Delegate class is the base class for the Multicast Delegate class. ...
    (microsoft.public.dotnet.framework)
  • Re: How to get invocation list for an event.
    ... | How can I get access to the invocation list for a multicast delegate (i.e. ... Remember that an Event encapsulates a Delegate field, ... you are going to have to know what its underlying field ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Delegates are useful, and here is why (sample program)
    ... out that MSDN has a MUCH MUCH better article introducing delegate types:http://msdn.microsoft.com/en-us/library/aa288459.aspx ... But if you're posting a code sample for use by others, you need to take more care than that. ... The fact is that the variable "myDelegateClass" does not reference a type that inherits the Type type. ... Or are you claiming that you cannot simply invoke the original multicast delegate and get the exact same effect as enumerating the invocation list and calling each delegate individually? ...
    (microsoft.public.dotnet.languages.csharp)