In MagicDraw version 12.1, the C# Using directive is mapped to the model as usage dependency with «C#Using» stereotype.
The following example shows the mapping of C# Using Namespace. The usage dependency for C# Using namespace declaration that is not in the namespace will be created under File View component.
Code:
Reversed UML model: |
Open usage dependency specification apply «C#Using» stereotype. For using namespace, leave the name empty:
The following example shows the mapping of C# Using alias. The usage dependency for C# Using alias declared in the namespace will be created under that namespace.
Code:
Reversed UML model: |
Open usage dependency specification apply «C#Using» stereotype. For using alias, enter the alias name:
For mapping C# Using directive in the C# Partial feature, add file component name into Partial Tag value of usage link specification.
Code for creating value partial1.cs
Reversed UML model: |
Code for creating value partial2.cs
Reversed UML model: |
Related pages