Previous Topic Next topic Print topic


Namespaces - in COBOL and C# and VB.NET

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.
Namespace Harding.Compsci.Graphics
  ...
End Namespace

' or

Namespace Harding
  Namespace Compsci
    Namespace Graphics
      ...
    End Namespace
  End Namespace
End Namespace

Imports Harding.Compsci.Graphics
Previous Topic Next topic Print topic