Understanding Namespaces

Namespaces provide a way for a better organization of the code and avoiding conflicts between types with the same name. Consider a complex hierarchical framework of objects (such as the .NET Framework or Windows Runtime) in which you have the need to expose more than one type with a particular identifier. The typical example is when software companies produce class libraries; different companies could need to provide their own implementation of the Person class, or the same company could provide different implementations of the Person class within the same assembly, so there could be ambiguities for developers when invoking a particular implementation of the Person class. To solve this coding problem, programming languages ...

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.