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# pointer type in a model (C# code)
  
Modeling a C# pointer type in a model (C# code)
A C# pointer type is modeled by creating the type, and then creating an Alias Type Definition that references that type. For Modeler items that use the Alias Type Definition as a type, ACS generates the item that is referenced through the Data Type property as a pointer type.
To model a C# pointer type in a model:
1. In the model, from the Model or Package that is to own the type, create and define the type.
2. From the Model or Package that is to own the pointer type, right-click the Model or Package, point to New, point to UML, point to Structure, point to Type Definition, and then click Alias.
3. Type the name for the Type Definition.
4. Open the Type Definition's Property Pages, and then click the Options tab.
5. Select the Pointer check box.
6. Click the Data Type tab.
7. Click the Select button, and then select the type you created in Step 1.
When you want to use the pointer type as a type, ensure that you select the Alias Type Definition as the type, rather than the type you created in Step 1.