我不明白错误消息以及如何修复它以及它为什么会发生。这是代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Threading;
namespace GatherLinks
{
class BackgroundWebCrawling
{
public string f;
int counter = 0;
List<string> WebSitesToCrawl;
int MaxSimultaneousThreads;
BackgroundWorker mainBackGroundWorker;
BackgroundWorker secondryBackGroundWorker;
WebcrawlerConfiguration webcrawlerCFG;
List<WebCrawler> webcrawlers;
int maxlevels;
public event EventHandler<BackgroundWebCrawling> ProgressEvent;
错误出现在 ProgressEvent 上
错误 1 类型“GatherLinks.BackgroundWebCrawling”不能用作泛型类型或方法“System.EventHandler”中的类型参数“TEventArgs”。没有从“GatherLinks.BackgroundWebCrawling”到“System.EventArgs”的隐式引用转换。