Why shouldn't C#(or .NET) allow us to put a static/shared method inside an interface?

后端 未结 7 1889
无人及你
无人及你 2020-12-11 04:24

Why shouldn\'t C#(or .NET) allow us to put a static/shared method inside an interface?

seemingly duplicate from here. but my idea is a bit different one, I just wan

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 04:59

    I've run into this several times and did some research. The sad part is, IL actually supports this. I got so frustrated with this I wrote a blog post about it. You can find it here.

提交回复
热议问题