A namespace declaration consists of the keyword Namespace
, followed by a qualified identifier and optional namespace member declarations. If the namespace name is qualified, the namespace declaration is treated as if it was lexically nested within namespace declarations corresponding to each name in the qualified name.
Namespaces are implicitly public and the declaration of a namespace cannot include any access modifiers.
Namespace
QualifiedIdentifier LineTerminatorEnd
Namespace
LineTerminator