Namespaces can be set at the file level.
C# | COBOL | VB.NET |
---|---|---|
namespace Harding.Compsci.Graphics { ... } // or namespace Harding { namespace Compsci { namespace Graphics { ... } } } using Harding.Compsci.Graphics; |
*> At the file level $set ilnamespace "MicroFocus.COBOL.Examples" *> The directive can also be set at project *> level to apply the name space to all classes in the project. *> Alternatively, at the class level: class-id MicroFocus.COBOL.Examples.MyClass. end class. *> namespace import at file level: $set ilusing(MicroFocus.COBOL.Examples) *> The directive can also be set at project *> level to apply the import to the entire project. |
Namespace Harding.Compsci.Graphics ... End Namespace ' or Namespace Harding Namespace Compsci Namespace Graphics ... End Namespace End Namespace End Namespace Imports Harding.Compsci.Graphics |