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