locked
A Counter of Registered events RRS feed

  • Question

  • Hi,

    if I add two events to ThreadException:

    Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);

    Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);

    is it possible to obtain the number of added/registered events from somewhere  ? e.g.

    Int32 registeredEventsCount = Application.ThreadException.Count; ????

    This:

    https://stackoverflow.com/questions/6439621/c-sharp-know-how-many-eventhandlers-are-set

    does NOT work

    Thanks

    Jerry


    • Edited by Jerry.Mouse Monday, July 29, 2019 6:43 AM update
    Monday, July 29, 2019 6:11 AM

Answers