예제 #1
0
파일: Program.cs 프로젝트: take91/csharp
 static void doAction(object sender, EventPublisherArgs e)
 {
     Console.WriteLine("MyEvent라는 이벤트 발생...");
     Console.WriteLine("이벤트 매개변수 : " + e.myEventData);
 }
예제 #2
0
파일: Program.cs 프로젝트: take91/csharp
        public void Do()
        {
            EventPublisherArgs args = new EventPublisherArgs("데이터");

            MyEvent?.Invoke(this, args);
        }