Can I find out if a function is assigned to an event?
eg. (Standard winforms application with web browser control)
namespace Crawler {
public partial class Form1 : Form {
WebCrawler.manager m;
public Form1() {
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e) {
system.windows.forms.webbrowser wb = new system.windows.forms.webbrowser();
wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(foo);
if (wb.DocumentCompleted.Contains(foo){
}else {
}
}
}
}
And if I can do something like the one described above, then how?
source
share