Namespaces

A namespace is basically a container of types. This means that one namespace can contain multiple classes, multiple modules, multiple interfaces, multiple structures, and so on. The following is an example of a namespace exposing two classes, one module, one structure, and one interface:

Namespace Test    Class Person        Property FirstName As String        Property LastName As String    End Class    Class Employee        Inherits Person        Property EmployeeID As Integer    End Class    Module Module1        Sub DoSomething()        End Sub    End Module    Interface ITest        Sub TakeATest()    End Interface    Structure SomeValues        Property FirstValue As Boolean        Property SecondValue ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.