G
Guest
Hi everyone,
Given an delegate type as in
public delegate MyDelegate()
Does anyone know the difference between an event
public event MyDelegate MyEvent;
and a 'normal' delegate field
public MyDelegate MyEvent;
As far as I've understood, some client can subscribe to both of them using
the same syntax (MyEvent += new MyDelegate(...)) and all subscribers are
called using MyEvent().
So what's the difference (apart from a theoretical one) between the two
concepts?
Thank you for any clarification!
greetings
Martin
Given an delegate type as in
public delegate MyDelegate()
Does anyone know the difference between an event
public event MyDelegate MyEvent;
and a 'normal' delegate field
public MyDelegate MyEvent;
As far as I've understood, some client can subscribe to both of them using
the same syntax (MyEvent += new MyDelegate(...)) and all subscribers are
called using MyEvent().
So what's the difference (apart from a theoretical one) between the two
concepts?
Thank you for any clarification!
greetings
Martin