Constructor in generated code
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)
  {
  }
}
This page was edited 69 days ago on 02/10/2024. What links here