Chapter 19 Working with C#


Namespace

You define a C# namespace using a package.

Only packages with the Use Parent Namespace check box deselected become C# namespaces.

In the following example, class Architect is declared in package Design which is a sub-package of Factory. The namespace declaration is the following:

namespace Factory.Design
{
   public class Architect
   {
   }
}

Classifiers defined directly at the model level fall into the C# global namespace.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.