A C# constructor is modeled through a Modeler Operation.
To model a C# constructor in a model:
1. In the model, right-click the Class, Data Type or Interface that is to own the constructor, point to New, and then click Operation.
2. Type the name of the constructor.
If you do not apply the «C# Constructor» stereotype to the Operation, the name of the Operation must match the name of the owning Class, Data Type or Interface.
If you apply the «C# Constructor» stereotype to the Operation, the name of the Operation can be any valid name.
3. Open the Operation's Property Pages, click the Options tab, and then select the appropriate Data Usage option.
◦ Select On Class for a static constructor.
◦ Select On Instance for an instance constructor.
4. Set the other standard properties of the Operation as required.
5. If you want to specify C# specific information, such as modifiers and attributes:
a. Apply the «C# Constructor» stereotype to the Operation.