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
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 .
5. Model class members through Class Attributes, Roles or Operations:
◦ Model constant, field and property members through Class Attributes or Roles. See the following topics:
◦ Model constructor, delegate, finalizer, indexer, method and operator members through Class Operations. See the following topics for more information.