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# class in a model (C# code)
  
Modeling a C# class in a model (C# code)
A C# class is modeled through a Modeler Class or Signal. Note that the «C# Classifier» stereotype cannot be applied to a Signal.
To model a C# class in a model:
1. In the model, right-click the Model, Package, Class or Signal that is to own the Class or Signal:
Point to New, point to UML, point to Structure, and then click Class.
or
Point to New, point to UML, point to Behavior, and then click Signal
2. Type the name of the class.
3. Set the standard properties of the Class or Signal as required.
4. If you want to specify C# specific information, such as modifiers, attributes and parent file scoping:
a. Apply the «C# Classifier» stereotype to the Class. Note that the «C# Classifier» stereotype cannot be applied to a Signal.
For information about applying Stereotypes to an item, see
Applying a stereotype to a model item
b. Open the Class' Property Pages, and then click the C# Classifier tab.
c. Set the tagged values of the Tag Definitions as required.
For more information about the available Tag Definitions, see Class mapping.
For information about setting the tagged value of a Tag Definition, see Setting a tagged value for an applied tag definition.
5. Model class members through Class Attributes, Roles or Operations:
Model event members through Class Attributes. Tell me more...
Model constant, field and property members through Class Attributes or Roles. See the following topics:
Modeling a C# constant in a model
Modeling a C# field in a model
Modeling a C# property in a model
Model constructor, delegate, finalizer, indexer, method and operator members through Class Operations. See the following topics for more information.
Modeling a C# constructor in a model (C# code)
Modeling a C# delegate in a model (C# code)
Modeling a C# finalizer in a model (C# code)
Modeling a C# indexer in a model (C# code)
Modeling a C# method in a model (C# code)
Modeling a C# operator in a model (C# code)