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# enum member in a model (C# code)
  
Modeling a C# enum member in a model (C# code)
A C# enum member is modeled through a Modeler Enumeration Literal.
To model a C# enum member in a model:
1. Open the Property Pages for the enum that is to own the enum member.
2. Click the Enumerations tab.
3. Click the New Item button, and then type the name of the enum member.
4. If you want to specify a constant expression for the enum member:
a. Apply the «C# Enum Member» stereotype to the Enumeration Literal.
For information about applying Stereotypes to an item, click here Applying a stereotype to a model item
b. On the Enumeration Literal's Property Pages, click the C# Enum Member tab.
c. Set the tagged values of the Tag Definitions as required.
For more information about the available Tag Definitions, click here Enumeration literal mapping
For information about setting the tagged value of a Tag Definition, click here Setting a tagged value for an applied tag definition