全局方法?
此 MSDN 页面提到了全局方法一个模块。
Module.GetMethods
“返回模块上定义的全局方法。”
我不知道有全局方法。我唯一能想到的是,这只适用于允许全局方法的语言,即C++,但这不适用于C#。
这个 MSDN 页面讨论的“全局方法”是什么?
This MSDN page mentions global methods in a module.
Module.GetMethods
"returns the global methods defined on the module."
I wasn't aware there were global methods. The only thing I can think of is that this only applies to languages that allow global methods, i.e. C++, but that this doesn't not apply to C#.
What are these "global methods" that this MSDN page is talking about?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是我之前发表的评论:
正如评论中提到的,这里是如何创建模块的方法在 VB.Net 中并在这些模块下创建全局函数...
http://www.homeandlearn.co.uk/net/nets9p7.html
或
http://www.mka-soft.com/vbnet-tutorial/25-vbnet-tutorial-16-module
This is the comment I placed earlier:
As mentioned in comments, here is the way, how you would create modules in VB.Net and create global functions under those modules...
http://www.homeandlearn.co.uk/net/nets9p7.html
OR
http://www.mka-soft.com/vbnet-tutorial/25-vbnet-tutorial-16-module
好吧,我应该继续读这本书......
Ok I should have continued reading the book ...