접근지정자 event 델리게이트 이름;
델리게이트 CalcDelegate가 선언되어있다면, 이벤트를 다음과 같이 선언
delegate void CalcDelegate(int x, int y);
private event CalcDelegate delEvt
이벤트를 선언했다면 이벤트 객체를 통해 이벤트 처리기를 등록
delEvt += new CalcDelegate (등록할 이벤트 처리기(메소드));
// 등록할 이벤트 처리기(메소드)는 콜백함수
앞에서는 임의로 델리게이트를 정의하고 이벤트를 선언했지만, C#에서 이벤트 처리를 위한 권장 이벤트처리기(EventHandler 델리게이트)가 제공된다.
이벤트 처리코드는 EventHandler()에 의해 정형화된다.
public delegate void EventHandler(object sender, EventArgs, e);