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# struct in a model (C# code)
  
Modeling a C# struct in a model (C# code)
A C# struct is modeled through a Modeler Data Type.
To model a C# struct in a model:
1. In the model, right-click the Model, Package or Class that is to own the struct, point to New, point to UML, point to Structure, and then click Data Type.
2. Type the name of the struct.
3. Open the Data Type's Property Pages, and set the standard properties of the Data Type as required.
4. Apply the «C# Classifier» stereotype to the Data Type.
For information about applying Stereotypes to an item, click here Applying a stereotype to a model item
5. On the Data Type's Property Pages, click the C# Classifier tab.
6. Set the tagged values of the Tag Definitions as required.
For more information about the available Tag Definitions, click here Data type mapping
For information about setting the tagged value of a Tag Definition, click here Setting a tagged value for an applied tag definition