This MSDN页面提到模块中的全局方法。Module.GetMethods
“返回模块上定义的全局方法。”
我不知道有全局方法。我唯一能想到的是,这仅适用于允许全局方法的语言,即 C++,但这不适用于 C#。
这个 MSDN 页面所讨论的这些“全局方法”是什么?
最佳答案
这是我之前发表的评论:
I am not sure, but I think the MSDN link you've given is referring to the Modules that are created under VB.Net and global methods are created under those modules
正如评论中提到的,这里是如何在 VB.Net 中创建模块并在这些模块下创建全局函数的方法......
http://www.homeandlearn.co.uk/net/nets9p7.html
或者
http://www.mka-soft.com/vbnet-tutorial/25-vbnet-tutorial-16-module
关于.net - 全局方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6435678/