In the previous section, I described a scenario in which you might want to explicitly provide
remove accessor methods for an event. However, when you’re explicitly implementing the accessor methods yourself, you can get a bit more creative with their implementation. Let’s see how explicitly implementing these methods can reduce the memory usage of an application.
System.Windows.Forms.Control type defines about 60 events. If the
Control type implemented the events by allowing the compiler to implicitly generate the
remove accessor methods and delegate fields, then every
Control object would have 60 delegate fields in it just for the events! Because objects never register interest in ...