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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access