我有一个基类,它包含以下事件:
public event EventHandler Loading;
public event EventHandler Finished;
在从这个基类继承的类中,我尝试引发事件:
this.Loading(this, new EventHandler()); // All we care about is which object is loading.
我收到以下错误:
事件“ BaseClass. Loding”只能出现在 + = 或-= (BaseClass)的左侧
我假设我不能像访问其他继承成员一样访问这些事件?