How can I check in C# if button.Click event has any handlers associated? If (button.Click != null) throws compile error.
EventDescriptor e = TypeDescriptor.GetEvents(yourObject).Find("yourEventName", true);