I have the following function for firing various events. Is there a
way to get the name of the event I am firing using only the info
already provided to the function? I don’t want to add another
parameter to the function and I don’t want to change the EventArgs
parameter to something derived from EventArgs.
static private void FireEventProces sing(object source, Delegate
handler, EventArgs e)
{
if (handler != null)
{
handler.Dynamic Invoke(source, e);
}
}
Thanks,
Mike
way to get the name of the event I am firing using only the info
already provided to the function? I don’t want to add another
parameter to the function and I don’t want to change the EventArgs
parameter to something derived from EventArgs.
static private void FireEventProces sing(object source, Delegate
handler, EventArgs e)
{
if (handler != null)
{
handler.Dynamic Invoke(source, e);
}
}
Thanks,
Mike
Comment