Book a Demo

Author Topic: c# generation - delegate in interface  (Read 2978 times)

Salty_Dog

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
c# generation - delegate in interface
« on: October 21, 2003, 04:39:38 am »
Hi Guys
I have a c# interface with a delegate in the namespace and the associated event in the interface class:-
namespace Interfaces {
     public delegate void StatusEventHandler(object sender, StatusEventArgs e);
     public interface IComponent
     {
           event StatusEventHandler StatusEvent;
     }//end IDM2Component
}//end namespace DM2Interfaces
If I import this and then re-generate it, I lose the delegate.
help

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: c# generation - delegate in interface
« Reply #1 on: October 28, 2003, 05:48:29 pm »
Hi Salty_Dog,

Thanks for the note.

Code Engineering for methods outside of a class body is not currently supported.  We will consider this as we develop support for multiple classes and namespaces per file.

Regards,
Ben

Salty_Dog

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: c# generation - delegate in interface
« Reply #2 on: October 29, 2003, 02:38:06 am »
Thanks for the reply, I see the problem with methods etc. outside the class, however when I synchronise and re-generate (not overwrite) I would have thought that it could leave the delegate line where it is.