How do I create a C# event handler that can be handled in IronPython?

后端 未结 1 617
情书的邮戳
情书的邮戳 2021-01-15 12:19

How do I create a C# event handler that can be handled in IronPython?

Note that I am using IronPython 2.0.1. I am able to handle events from system classes with no

相关标签:
1条回答
  • 2021-01-15 12:48

    I figured it out.

    The class needs to be public as well as the event.

    eg

    public class Foo
    {
       ...   
    
        public event EventHandler Bar;
    }
    
    0 讨论(0)
提交回复
热议问题