Monday, January 23, 2006
VB .NET 2005 - Global Keyword
Global
Points to .NET framework base class library when used. This is useful wherein some of the custom namespace in an assembly has the same namespace in .NET framework base class libraries.
Namespace System.IO
Public Class FileWriter
Public Shared Sub Write()
' Some code here for actual implementation
End Sub
End Class
End Namespace
Supposing you want to use the .NET framework base class library for System.IO.
Simple use the Global keyword, please see below.
Dim fstm as Global.System.IO.FileStream