How can I get an actual EventHandler delegate instance from an event in VB.NET?

前端 未结 2 845
刺人心
刺人心 2020-12-20 15:51

In C#, I could do something like this:

EventHandler handler = this.SomeEvent;

...which would allow me to, for example, do:

         


        
2条回答
  •  我在风中等你
    2020-12-20 16:35

       Private Event MyEvent()
       Private delegates() As System.Delegate = MyEventEvent.GetInvocationList()
    

    undocumented, found here

提交回复
热议问题