0
我的「安全性」組件包括驗證碼:沒有重載「<method>」匹配委託「<delegate>」
public delegate void InteropEventDelegate(InteropEventType etype, string data, string data2, string data3);
public event InteropEventDelegate InteropEvent;
第二裝配引用我的「安全」組件,包括此代碼:
void LoadSecurity()
{
if (!AssemblyIsLocked && Security == null)
{
this.Security = new Security.Security(UnlockCode);
this.Security.InteropEvent += new Security.Security.InteropEventDelegate(Security_InteropEvent);
}
}
void Security_InteropEvent(InteropEventType etype, string data, string data2, string data3)
{
throw new NotImplementedException();
}
Security_InteropEvent由IntelliSense生成,並具有正確的簽名,但出現錯誤「沒有爲'Security_InteropEvent'重載匹配委託'Security.Security.InteropEventDelegate'」。爲什麼?
我第二個這個建議。簡單的摘錄`Security = new Security.Security`對同一個詞有三個含義! – configurator 2011-01-07 00:09:05