A software project consists normally of a number of pieces of code (declarations, procedures and functions, classes, and so on), known generically as components of an assembly. For large projects the number of these components can be quite large. To ease the use of these components by further grouping them into smaller categories, a new construct was introduced. It is known as a namespace. A namespace is a group of components that are somehow related. These components can be type declarations, constants, procedures, functions, classes, and so on.

Namespaces also resolve naming ambiguity issues with which programmers in older languages were confronted. Let us assume your program uses an external function called WriteError to log an ...

Get Visual Basic® .NET by Example 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.