Constructor in generated code
(Created page with "none|thumb|437x437px To create a constructor you first add a normal method, then change the operationKind to constructor. In generated code y...")
 
No edit summary
Line 1: Line 1:
[[File:2021-10-14 18h27 52.png|none|thumb|437x437px]]
Different operation kinds of methods:
[[File:2021-10-14 18h31 05.png|none|thumb]]
[[File:2021-10-14 18h27 52.png|none|thumb|692x692px]]
To create a constructor you first add a normal method, then change the operationKind to constructor.
To create a constructor you first add a normal method, then change the operationKind to constructor.



Revision as of 16:32, 14 October 2021

This page was created by Hans.karlsen@mdriven.net on 2021-10-14. Last edited by Edgar on 2025-01-20.

Different operation kinds of methods:

2021-10-14 18h31 05.png
2021-10-14 18h27 52.png

To create a constructor you first add a normal method, then change the operationKind to constructor.

In generated code you will get this:

public partial class Class1
{
  [UmlElement(Id = "c8111515-b7a5-4b9b-87f9-4a19261c8bd8")]
  public Class1(Class2 aClass2)
  {
  }
}