How can global function exist in C#?

前端 未结 7 1521
暖寄归人
暖寄归人 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:51

    I suppose that the thing is, that this is IL injection operation, but IL is not absolutely only about C#. In other words it's for support of the language that supports global functions.

    0 讨论(0)
提交回复
热议问题