不可使用的成员'Cntrl.eventHandler_0'不能像方法一样使用 [英] Non-invocable member 'Cntrl.eventHandler_0' cannot be used like a method
本文介绍了不可使用的成员'Cntrl.eventHandler_0'不能像方法一样使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是在标记行显示错误的代码
here is the code which show the error at marked line
private void btnEdit_Click(对象发送者,EventArgs e)
{
if(this.eventHandler_2!= null)
{
// this.eventHandler_2(this,e);在这里显示错误
}
}
private void btnEdit_Click(object sender, EventArgs e)
{
if (this.eventHandler_2 != null)
{
//this.eventHandler_2(this, e); show error here
}
}
请在adv中为此感谢提供解决方案
please provide solution to this thanks in adv
推荐答案
查找并显示定义 eventHandler_0 的 eventHandler_2 成员.应该是代表或事件.
Find and show the definition of the eventHandler_0 and eventHandler_2 members. Should be a delegate or event.
这篇关于不可使用的成员'Cntrl.eventHandler_0'不能像方法一样使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文