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# interface in a model (C# code)
  
Modeling a C# interface in a model (C# code)
A C# interface is modeled through a Modeler Interface.
To model a C# interface in a model:
1. In the model, right-click the Model, Package or Class that is to own the interface, point to New, point to UML, point to Structure, and then click Interface.
2. Type the name of the interface.
3. Open the Interface's Property Pages, and then set the standard properties of the Interface as required.
4. If you want to specify C# specific information, such as modifiers:
a. Apply the «C# Classifier» stereotype to the Interface.
For information about applying Stereotypes to an item, click here Applying a stereotype to a model item
b. On the Interface's Property Pages, click the C# Classifier tab.
c. Set the tagged values of the Tag Definitions as required.
For more information about the available Tag Definitions, click here Interface mapping
For information about setting the tagged value of a Tag Definition, click here Setting a tagged value for an applied tag definition
For information about modeling interface implementation, click here Modeling Csharp interface implementation in a studio model
5. Model interface members through Attributes, Roles or Operations:
Model event members through Interface Attributes. Tell me more...
Model property members through Interface Attributes or Roles. Tell me more...
Model indexer and method members through Interface Operations.