Overview

Modelio defines stereotypes which are used to designate certain objects as being concerned by the generation of C# code.

Note: Certain stereotypes can be added to certain model elements directly through the "C#" property view. For more information, please see "Modelio C# Designer property view".

Stereotypes on an artifact

The list of stereotypes:

  • C# Executable Project: define a Visual Project used to build an executable.

  • C# Library Project: define a Visual Project used to build a library.

  • C# Windows Executable Project: define a Visual Project used to build a windows executable.

Stereotypes on an attribute
  • C# Property: represent a C# property containing getters and setters.

Stereotypes on an association end
  • C# Property: represent a C# property containing getters and setters.

Stereotypes on a class
  • C# Attribute: generate a class as a C# attribute.

  • C# Class: indicate a class is managed by C# Designer and will be generated.

  • C# Delegate Container: generate a class as a "delegate" container.

  • C# Indexer: define an indexer within a class.

Stereotypes on a component
  • C# Executable: indicate this component represents a C# executable.

  • C# Library: indicate this component represents a C# library.

  • C# Windows Executable: indicate this component represents a C# windows executable.

  • C# Makefile: indicate this component will be generated as a C# makefile.

Stereotypes on a constraint
  • C# Invariant: indicate an invariant expressed in C#. Such a constraint is only taken into account if it concerns a class.

  • C# Pre Condition: indicate a pre-condition expressed in C#. Such a constraint is only taken into account if it concerns an operation.

  • C# Post Condition: indicate a post-condition expressed in C#. Such a constraint is only taken into account if it concerns an operation.

Stereotypes on an element import
  • C# File Group: indicate that the two C# elements bound by this link will be generated in the same file.

Stereotypes on an enumeration
  • C# Enumeration: indicate an enumeration is managed by C# Designer and will be generated.

Stereotypes on an interface
  • C# Interface: indicate an interface is managed by C# Designer and will be generated.

Stereotypes on an operation
  • C# Delegate: declare an operation as being a "delegate".

  • C# Operator: declare a C# operator.

  • create: define a constructor.

  • destroy: define a destroyer.

  • C# Static Constructor: define a static constructor.

Stereotypes on a package
  • C# Package: indicate a package is managed by C# Designer and will be generated.

Stereotypes on a signal
  • C# Event: define an event in a C# class.