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 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. 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 OrganizingTypesWithinNamespaces ...
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