나는 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;
오류는 제네릭 형식 또는 메서드에 형식 매개 변수 'TEventArgs'로 사용할 수 없습니다 의해 ProgressEvent
오류 1 유형 'GatherLinks.BackgroundWebCrawling'에 : 이 코드입니다 'System.EventHandler'. 암시적인 참조 은 'GatherLinks.BackgroundWebCrawling'에서 'System.EventArgs'로 변환됩니다.