Book a Demo

Author Topic: cannot generate C# interfaces  (Read 2448 times)

gtschech

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
cannot generate C# interfaces
« on: March 08, 2006, 04:42:31 am »
When modelling in EA, I can mark a class with the stereotypp <<interface>>.
After marking that clas as being coded in C#, I would have anticipated that the code would generate an interface, just as
public interface Idontknow
{
 void InterfaceMethod();
}

but EA generates a class, which is not what I need.
If I change 'class' to 'interface' in the source file, EA does not recognize this code any more and recreates the class.
How and where do I have to set flags so that the code generation actually produces an interface?

Guenter from Frankfurt/Germany

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: cannot generate C# interfaces
« Reply #1 on: March 08, 2006, 01:02:28 pm »
You need to use an interface element.  (It appears in the class toolbox just under class.)

You can also change your class in the model into an interface.  (Element | Advanced | Change Type)