none
explicit event accessors RRS feed

  • Question

  • Hi Dear Friends ...

    I read about the explicit event accessors And I know There are the following Items scenarios where this is useful :

    1. When the event accessors are merely relays for another class that is broadcasting
      the event.
    2.  When the class exposes a large number of events, where most of the time very
      few subscribers exist, such as a Windows control. In such cases, it is better to
      store the subscriber’s delegate instances in a dictionary, since a dictionary will
      contain less storage overhead than dozens of null delegate field references.

    Can you give me an example with Code to understand better This Items Especially for the first part ?

    Thanks for your helping. (-;



    • Edited by Arash_ Monday, August 21, 2017 3:35 PM
    • Moved by Stanly Fan Monday, August 28, 2017 8:12 AM from windows form
    Monday, August 21, 2017 3:28 PM

All replies