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# parameter in a model (C# code)
  
Modeling a C# parameter in a model (C# code)
A C# parameter is modeled through a Modeler Parameter.
To model a C# parameter in a model:
1. In the model, right-click the Operation that models the element that is to own the parameter, point to New, and then click Parameter.
2. Type the name of the Parameter.
3. Open the Parameter's Property Pages, and click the Options tab.
4. Click the Select button, and then select the item that is to be the type of the parameter.
If you want to use a delegate as a type, reference the Operation that generates the delegate through the C# Delegate Type tag definition that is applied by the «C# Parameter» stereotype.
5. Select the appropriate Mechanism option.
6. Set the other standard properties of the Parameter as required.
7. If you want to specify C# specific information, such as attributes and type arguments for a generic type:
a. Apply the «C# Parameter» stereotype to the Parameter.
For information about applying Stereotypes to an item, click here Applying a stereotype to a model item
b. On the Parameter's Property Pages, click the C# Parameter tab.
c. If the type of the parameter is a generic type, specify the type arguments through the tagged value of the C# Actual Parameters tag definition.
For information about setting the tagged value of a Tag Definition, click here Setting a tagged value for an applied tag definition
d. Set the other tagged values of the Tag Definitions as required.
For more information about the available Tag Definitions, click here Parameter mapping