How can global function exist in C#?

前端 未结 7 1555
暖寄归人
暖寄归人 2020-12-29 05:58

How can global function exist in C# when everything is defined inside a class? I was reading the documentation of OpCodes.Call at MSDN, and was surprised to see the followin

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 06:32

    C# does not support all features of MSIL. Global functions is one of them. VB.Net, F#, IronPython or some other language likley to use this and other features that are not generated by C# compiler.

提交回复
热议问题