c# ildasm
![[C#] event](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcTFBvF%2FbtqDjGbICTl%2FAAAAAAAAAAAAAAAAAAAAAM1U-Tp41gz0LLkjN9_d9R-ClFJreAAjBRPOaxdoNTwj%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DCbG4mlP237rUqxzSEFV3uobcVRM%253D)
[C#] event
1. 개요 using System; delegate void HANDLER(); class Button { public HANDLER handler = null; public void press() { handler(); } } class Program { static void Main() { Button btn = new Button(); btn.press(); } public static void F1() { Console.WriteLine("F1"); } public static void F2() { Console.WriteLine("F2"); } } 위와 같은 코드가 있다고 생각을 해보자. Button클래스는 실제 GUI에서 사용할 버튼이라고 생각하고 Main에서 Button객체를 만들고 pres..