Book a Demo

Author Topic: How to create derived operations  (Read 2528 times)

Andris

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to create derived operations
« on: September 14, 2008, 07:43:11 pm »
Hi,

I'd like to create a constructor that calls another constructor in this way:

public MyClass(object o1, object o2):this(o1)
{
  ...
}

How can I set it on a class diagram designer to produce this output in C#?
« Last Edit: September 14, 2008, 07:45:02 pm by nologin »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to create derived operations
« Reply #1 on: September 14, 2008, 11:04:38 pm »
I think you can do this, but it is not part of a diagram, but rather the code engineering function.

Look into creating custom templates. You'll need to hunt and peck a bit to figure out the formatting options, but it is all there.
No, you can't have it!