[Mono-list] Little question ...

Miguel de Icaza miguel@ximian.com
Sat, 07 Feb 2004 11:21:20 -0500


Hey,

> Only one little question: What are the main differences between using
> "event" keyword or not when creating delegates?
> 
> Example:
> 
> delegate void ProbeDelegate  (string msg);
> 
> ProbeDelegate d1;
> event ProbeDelegate d2;

events can notify more than one function, a delegate only points to a
single method.

So you can have multiple "listeners".

Miguel.