I want to create a "default" event handler for a button, so if there are no subscribers to the Click event the default handler runs. I assume subscriber count will allways be at least one if I am in a handler correct?
Conceptually:
protected void btn_Reset_Click( object sender, EventArgs e ) {
List<delegate> subscribers= btn_Reset.Click.GetInvocationList();
if(subscribers.Count == 1){ DoDefaultAction; }
else { DoSubscribersActions(); }
}
Really not sure how to get started here. TIA.
Go to the complete details ...