Chapter 15 Working with C#
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) 2008. Sybase Inc. All rights reserved. |
| |