Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C# code > C# code > Reverse engineering legacy C# code > Modeling C# code in Modeler > Modeling a C# namespace in a model (C# code)
  
Modeling a C# namespace in a model (C# code)
A C# namespace is modeled through a Modeler Package.
To model a C# namespace in a model:
1. In the model, right-click the Model or Package that represents the parent folder or namespace of the namespace you want to create, point to New, and then click Package.
2. Type the name of the namespace.
3. Open the Package's Property Pages, and then click the Options tab.
4. Select the Namespace option.
5. If you want to specify C# specific information, that is, using directives, extern alias directives or optionally not generating a folder for the Package:
a. Apply the «C# Package» stereotype to the Package.
For information about applying Stereotypes to an item, click here Applying a stereotype to a model item
b. On the Package's Property Pages, click the C# Package tab.
c. Set the tagged values of the Tag Definitions as required.
For more information about the available Tag Definitions, click here Package mapping
For information about setting the tagged value of a Tag Definition, click here Setting a tagged value for an applied tag definition