728x90
event EventHandler firestoreSingleUpdateResultEvent; //이벤트 핸들러 생성

 

firestoreSingleUpdateResultEvent += new EventHandler(firestoreSingleUpdateResultAction); //이밴트 핸들러 추가

 

if (this.firestoreSingleUpdateResultEvent != null)
{
  foreach (Delegate d in firestoreSingleUpdateResultEvent.GetInvocationList())
  {
    tbErrors.AppendText($"Method: {d.Method.ToString()} \r\n");
    tbErrors.AppendText($"Target: {d.Target.ToString()} \r\n");
  }
}
else tbErrors.AppendText($"firestoreSingleUpdateResultEvent: 0 \r\n");

 

이렇게 이벤트 핸들러에 추가 되어 있는 리스트들을 확인 가능 하다.

 

출처: m.blog.naver.com/PostView.nhn?blogId=ntkor&logNo=220818178791&proxyReferer=https:%2F%2Fwww.google.co.kr%2F

728x90

+ Recent posts