July 2003
Intermediate to advanced
736 pages
16h 35m
English
We have examined a variety of ways to use events as consumers. Now we need to explore how to use events as producers. This section demonstrates how to declare event members for classes, structures, and interfaces. Keep in mind, though, that the event grammar is the same regardless of which type the event is defined in.
There are two basic signatures for events, as shown below.
Modifiers Event signature Modifiers Event Name As delegate
TIPEvents cannot define a return type. That is, events must always have subroutine-style signatures. |
The first example above defines an event by signature. An event includes the name of the event and the arguments for name, type, and number. The second ...
Read now
Unlock full access