开发者

Is there something like "global::" for VB.NET?

I am writing a code-generator that will need to output some miniscule portions of VB.NET code, and since this is a code generator that will add user-provider code, I'd like to try to avoid type name conflicts with types or names in the user-provided code.

In C#,开发者_Python百科 I can prefix types with global:: to make sure they're matched from the global type namespace hierarchy, rather than some local name, but is there a similar system for VB.NET?

ie. this:

global::System.String


It's simply the Global keyword:

Dim n As Global.System.Int32


My VB is very rusty, and I don't have a compiler in front of me... But isn't it just

Global.System.String

? Let me know if I've dreamt this, and I'll delete...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜