Modeling a C# method in a model (C# code)
A C# method is modeled through a Modeler Operation.
To model a C# method in a model:
1. In the model, right-click the Class, Data Type or Interface that is to own the method, point to New, and then click Operation.
2. Type the name of the method.
3. Open the Operation's Property Pages, click the Options tab.
4. If you want to generate a virtual method, select the At Runtime option.
5. If you want to generate an abstract method, select the Abstract check box.
6. Set the other standard properties of the Operation as required.
7. If you want to specify C# specific information, such as modifiers:
a. Apply the «C# Method» stereotype to the Operation.
b. On the Operation's Property Pages, click the C# Method tab.
c. Set the tagged values of the Tag Definitions as required.
For more information about the available Tag Definitions, click here
Operation mapping