Book a Demo

Author Topic: C# explicit interface implementation problem  (Read 2318 times)

DrLik

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
C# explicit interface implementation problem
« on: September 26, 2005, 06:58:42 am »
Hi all,
I need implementing one interface's methods as explicit in my class. I implement those methods, mark them with ImplementsExplicit tag and generate code. It works well.
But when I synchronize model (reverse) with the generated code, EA reverse methods like InterfaceName.MethodName.
Example:

Model before generating code:

interface ITest has method DoIt();

class MyClass implements ITest and implements method DoIt(); I mark it with ImplementsExplicit tag and after generating C# code, I get this:

public MyClass : ITest {
 void ITest.DoIt() {
 }
}

But after reverse synchronizing the code to model, method DoIt on MyClass is now named ITest.DoIt().
Isn't it possible to reverse loading explicit implemented methods into original state?