Summary of mappings for C# (C# code)
This table provides a summary of how Modeler item types map to C# code.
For more information about a mapping, see the related topic.
Modeler
Related topic
C# Code
Association (Role)
Constant, field or property.
Attribute
Constant, event, field or property.
Basic type
Type.
Class
Class in its own code file, or in the scoping item's file.
Data Type
Struct in its own code file, or in the scoping item's file.
Dependency
Implemented interface (interface realization)
Exception
Not generated.
Generalization
Base class definition (inheritance).
Interface
Interface in its own code file, or in the scoping item's file.
Model
Code file, if required.
\u00a0Operation
Constructor, delegate, finalizer, indexer, method or operator.
Package
Folder and if required, a code file.
Parameter
Parameter within the class, struct or interface member definition.
Role
Constant, field or property.
Signal
Class in its own code file, or in the scoping item's file.
State Diagram
Not generated.
Type definition
Enum, array type, nullable type or pointer.
Was this helpful?