Root Namespace

Each application has a root namespace that contains all types defined in the application. When you create a new project, Visual Studio automatically assigns the root namespace (also known as the first-level namespace) with the name of the project. This is important to understand, for several reasons. First, if you develop class libraries or reusable components, the root namespace must follow the naming conventions of the Common Language Specification (CLS). Second, you must know how your types and auto-generated code are organized within your project. For example, the project containing the code of this chapter is named OrganizingTypesWithinNamespaces. By default, Visual Studio assigned the root namespace identifier with the

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.