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# fixed size buffer in a model (C# code)
  
Modeling a C# fixed size buffer in a model (C# code)
A C# fixed size buffer is modeled through a Modeler Attribute.
To model a C# fixed size buffer in a model:
1. In the model, right-click the Class or Data Type that models the element that is to own the C# fixed size buffer, point to New, and then click Attribute.
2. Type the name of the C# fixed size buffer.
3. Open the Attribute's Property Pages, and then click the Data Type tab.
4. Click the Select button, and then select the item that is to be the type of the C# fixed size buffer.
5. On the Attribute's Property Pages, click the Options tab.
6. In the Multiplicity list, select User Defined, and then in the text box type the size of the fixed size buffer.
7. Apply the «C# Fixed Size Buffer» stereotype to the Attribute.
For information about applying Stereotypes to an item, click here Applying a stereotype to a model item
8. On the Attribute's Property Pages, click the C# Fixed Size Buffer tab.
9. Set the tagged values of the Tag Definitions as required.
For more information about the available Tag Definitions, click here Attribute mapping