J
jehugaleahsa
Hello:
I am creating a simple class library for simplifying reflection.
I am creating an EventWrapper class that allows programmers to treat
it like an event (minus the operator overloading).
I am concerned with how to check that handlers have been added to the
event prior to raising it.
For instance,
if (TextChanged != null)
{
TextChanged(this, EventArgs.Empty);
}
tests whether there are any handlers prior to raising the event. How
can I do this with the EventInfo class?
Thanks!
I am creating a simple class library for simplifying reflection.
I am creating an EventWrapper class that allows programmers to treat
it like an event (minus the operator overloading).
I am concerned with how to check that handlers have been added to the
event prior to raising it.
For instance,
if (TextChanged != null)
{
TextChanged(this, EventArgs.Empty);
}
tests whether there are any handlers prior to raising the event. How
can I do this with the EventInfo class?
Thanks!