我不明白的erorr消息,以及如何解決它,以及爲什麼發生。 這是代碼:爲什麼在我的新課堂中創建活動時發生錯誤?
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」不能在通用類型或方法被用作 類型參數「TEventArgs」 'System.EventHandler'。沒有從'GatherLinks.BackgroundWebCrawling'轉換爲 'System.EventArgs'的隱式引用 。