Extension methods overloading in C#, does it work?

后端 未结 5 725
遥遥无期
遥遥无期 2020-12-11 17:27

Having a class that has a method, like this:

class Window {
    public void Display(Button button) {
        // ...
    }
}

is it possible

5条回答
  •  时光说笑
    2020-12-11 18:06

    It's not possible (also see Monkeypatching For Humans) - maybe with DLR and method_missing.

提交回复
热议问题