PART I
C h a p t e r 1 5 :
D e l e g a t e s , E v e n t s , a n d L a m b d a E x p r e s s i o n s
429
PART IPART I
N
OTE
N
OTE
In multithreaded applications, you will usually need to synchronize access to the event
accessors. For information on multithreaded programming, see Chapter 23.
Miscellaneous Event Features
Events can be specified in interfaces. Implementing classes must supply the event.
Events can also be specified as
abstract
. A derived class must implement the event.
Accessor-based events cannot, however, be
abstract
.
An event can be specified as
sealed
.
Finally, an event can be virtual, which means that it can be overridden in a derived class.
Do'stlaringiz bilan baham: |