Book a Demo

Author Topic: Parameterized Interfaces?  (Read 3353 times)

cnahr

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Parameterized Interfaces?
« on: May 11, 2010, 08:56:08 pm »
Does EA support interfaces with type parameters in class diagrams?  That is, the little box in the top right corner that says "T" (or whatever) for the generic type argument.

When I reverse-engineer code from C# this little box correctly appears for generic classes, but not for generic interfaces.  There does not appear to be an option for type parameters in the property dialog for these interfaces, either.

If this is indeed not possible, could you please add this functionality?  Thanks.

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Parameterized Interfaces?
« Reply #1 on: May 12, 2010, 12:58:47 am »
Hi,

What you can do is specifying generic interfaces forward (not getting them from rev. enineering). Simply create a new class, give it a template parameter as usual and change the stereotype to <<interface>>>. I can't tell,. if this will generate the correct code for c#, but i guess so.

HTH
günther

cnahr

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Parameterized Interfaces?
« Reply #2 on: May 12, 2010, 05:01:23 pm »
Good to know, but that doesn't really help me.  I use EA only for documentation, i.e. reverse-engineering, and I don't want to manually recreate those classes/interfaces after every code import.