And by default, they are executed syncronous and in list order. You can
invoke them yourself on a seperate threads if that is something you need.
--
William Stacey [C# MVP]
"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:em**************@TK2MSFTNGP03.phx.gbl...
| Hi Peter,
|
| More accurately, it's the MulticastDelegate class, which derives from
| Delegate, that provides the invocation list.
|
| --
| Dave Sexton
|
| "Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
| news:6F**********************************@microsof t.com...
| The System.Delegate class from which your delegate inherits maintains an
| invocation list for a delegate -- a list of methods that will be called
when
| the delegate is invoked.
| >
| When you invoke the delegate, the base class implementation loops
through
| the list and calls each method.
| >
| Peter
| >
| --
| Co-founder, Eggheadcafe.com developer portal:
|
http://www.eggheadcafe.com
| UnBlog:
|
http://petesbloggerama.blogspot.com
| >
| >
| >
| >
| "jm" wrote:
| >
| >If I have multiple subscribers to a delegate, what keeps track of them?
| > Are they out there on the heap?
| >>
| >When I declare a delegate:
| >>
| >public delegate void MyDelegate (object myObject, MyObjectEventArgs
| >myEvent);
| >public MyDelegate SomethingHappened;
| >>
| >and later I have two subscribers, what's going on in the background.
| >My Delegate "variable," if that is what it's called just looks like a
| >variable, but behind the scenes it can hold multiple instances of
| >subscribers, correct, like an array? Just wondered what was going on.
| >I'm "protected" from it by the .Net framework.
| >>
| >Thanks.
| >>
| >>
|
|