VB 2005: The Global keyword

I was looking at the code generated by Visual Studio and I encounter this Global keyword.  Found out that you use this when you want to start the qualification chain at the outermost level of the .NET Framework class library, e.g.:


This is useful if you are in a situation where you have defined a namespace in your code nested in another namespace (e.g. MyNamespace.System) and you have a System.Int32 declaration inside.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s