Book a Demo

Author Topic: interface generation for c#  (Read 4522 times)

uwem

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
interface generation for c#
« on: March 29, 2005, 12:28:51 am »
Hello,

How i can generate an interface for c#? I create a class and set the stereotype to interface (and create one method). The generated c# code:

namespace my.namspace {

public class Interface {



public Interface(){



}



~Interface(){



}



public void doIt(){



}


}//end Interface

}//end namespace my.namespace

Thanks in advance.

Bye
Uwe

thomaskilian

  • Guest
Re: interface generation for c#
« Reply #1 on: March 29, 2005, 01:59:46 am »
How about reverse engineering that code?

AshK

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: interface generation for c#
« Reply #2 on: March 29, 2005, 02:06:21 pm »
Hi uwem,

The steps you have taken seem correct.

Could you please tell me which build of EA you are using?


Ash
The Sparx Team
[email protected]

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: interface generation for c#
« Reply #3 on: March 29, 2005, 02:27:55 pm »
UML (and EA) has an interface element.  You need to use that to generate an interface.

Simon

uwem

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: interface generation for c#
« Reply #4 on: March 29, 2005, 11:15:09 pm »
Hello.

I use version 4.51.749.

@simon
This is correct. With the interfacc element i have the following options:
General,Require,Constraints,Link,Scenario,Files

Where is the option for methods?  :-/

uwe

thomaskilian

  • Guest
Re: interface generation for c#
« Reply #5 on: March 29, 2005, 11:52:49 pm »
F10

uwem

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: interface generation for c#
« Reply #6 on: March 30, 2005, 04:03:14 am »
F10?   ???

In the (left) toolbox -> structure -> interface
F10 has no function.

thomaskilian

  • Guest
Re: interface generation for c#
« Reply #7 on: March 30, 2005, 07:03:21 am »
Probably too short :o
Select the interface in the diagram or browser. Then press F10. The operations dialog pops up. F9 accordingly for attributes.

uwem

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: interface generation for c#
« Reply #8 on: March 30, 2005, 08:34:10 am »
Thanks it works!  :D