N
news.microsoft.com
I need to get the full signature of a delagate in a string. Is this
possible?
In a control I have:
public delegate void Button_Click(object sender, EventArgs e);
public event Button_Click click;
then I have:
private void GetControlEvents(Control cControl)
{
EventInfo[] eventlist = cControl.GetType().GetEvents();
foreach(EventInfo eventlst in eventlist)
{
string st = eventlst.EventHandlerType.Name
}
}
In the above, variable st will have "Button_Click"
----------------------------
WHAT I NEED
----------------------------
I need to get in a string "void Button_Click(object sender, EventArgs e)"
Evan Camilleri
possible?
In a control I have:
public delegate void Button_Click(object sender, EventArgs e);
public event Button_Click click;
then I have:
private void GetControlEvents(Control cControl)
{
EventInfo[] eventlist = cControl.GetType().GetEvents();
foreach(EventInfo eventlst in eventlist)
{
string st = eventlst.EventHandlerType.Name
}
}
In the above, variable st will have "Button_Click"
----------------------------
WHAT I NEED
----------------------------
I need to get in a string "void Button_Click(object sender, EventArgs e)"
Evan Camilleri