静态类和“this”关键字

我有一个自定义事件的静态类,如下所示:

//The delegate public static delegate void eventDoneDelegate(object sender, WebLoaderEventArgs e); //The event that uses the delegate public static event eventDoneDelegate PageRequestDone; //Calls the event private static void onPageRequestDoneChanged(WebLoaderEventArgs e) { if (PageRequestDone != null) PageRequestDone(this, e); } 

我知道“这个”不能被使用,因为它引用了当前的实例,但是我怎么能通过currect类作为参数呢?

或者,也许我的逻辑是错误的,请注意我,因为我是新来的。

谢谢。

sender参数值的语义含义取决于事件发布者与事件订阅者之间的模糊协议; 没有通用的标准。 在你的例子中,我根本看不到任何发送者值的需要,你也可以传递null值。