namespace

The namespace keyword is used to declare a scope. This namespace scope lets you organize code and gives you a way to create globally unique types.

Syntax

namespace <qualified_name>
{
    <body>
}

The namespace body may contain any of the following entities:

  • another namespace
  • class
  • interface
  • struct
  • enum
  • delegate