L
Leslie Sanford
Is it considered bad style to make event handlers public? Something like
this:
public void Send(object sender, SomeEventArgs e)
{
// Do stuff...
}
The idea is that by making the handlers public, a third party can
configure the flow of events through an application by attaching and
detaching objects with events to objects with event handlers. The
objects involved don't have to know about each other.
I can't find anything in the guidelines that say one way or the other.
this:
public void Send(object sender, SomeEventArgs e)
{
// Do stuff...
}
The idea is that by making the handlers public, a third party can
configure the flow of events through an application by attaching and
detaching objects with events to objects with event handlers. The
objects involved don't have to know about each other.
I can't find anything in the guidelines that say one way or the other.