Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Use namespace directive

The use namespace pragma is used to contribute a namespace to the compile-time open namespace list of the enclosing scope.

use namespace ns1

use namespace belongs to the compile-time and only affects the open namespace list of the current block scope and any syntactically nested scopes, unlike, say, default xml namespace.

Syntax

    UseNamespaceDirective :
      use namespace ListExpressionallowIn