Book a Demo

Author Topic: c# interface generation  (Read 2458 times)

Salty_Dog

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
c# interface generation
« on: October 08, 2003, 06:21:35 am »
Hi Guys

I am using build 646. I no longer get the inappropriate public specifiers in the itnerface, however if I have an interface with some properties, and some operations, I get incorrect code in the class that realises the interface. The properties work :-

     int itestif.testprop1 {
           get{
                 return fred;
           }
     }

the insertion of the itestif before testprop1 obviates the need for the public modifier. I woulod have preferred public but that's ok

however the operation comes out :-
     void testop1(){

     }

without either the public modifier or the itestif before testop1.

help




benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: c# interface generation
« Reply #1 on: October 08, 2003, 04:57:18 pm »
Hi Salty_Dog,

This issue has been corrected and the fix will be in release 647.

(The fault was in the C# Operation Body templates- they were not omitting the curly braces.  So if you need this fixed immediately, you can override the default templates to check for and handle interface element types).

Regards,
Ben