Previous Topic Next topic Print topic


Namespaces - in COBOL and C#

Namespaces in Managed COBOL

Namespaces can be set at the file level.

$set ilnamespace "Harding.Compsci.Graphics"
*> The directive can also be set at the project level 
*> to apply the name space to all classes in the project.

Namespaces in C#

namespace Harding.Compsci.Graphics 
{
  ...
}
 
// or
 
namespace Harding 
{
  namespace Compsci 
  {
    namespace Graphics 
    {
      ...
    }
  }
}
 
using Harding.Compsci.Graphics;
Previous Topic Next topic Print topic