带ref参数 重载均与委托不匹配的错误
public delegate void AppEvents_WorkbookBeforePrintEventHandler(Workbook Wb, ref bool Cancel);
Globals.ThisAddIn.Application.WorkbookBeforePrint += new Excel.AppEvents_WorkbookBeforePrintEventHandler(App_WorkbookBeforePrint);
private void App_WorkbookBeforePrint(Workbook Wb, ref bool Cancel)
{
}
这样写有错么?为什么一直报重载均与委托不匹配的错误
明明匹配了不是