Book a Demo

Author Topic: partial C# classes  (Read 4452 times)

Mr. Sanders

  • EA User
  • **
  • Posts: 187
  • Karma: +0/-0
  • Dilbert for president
    • View Profile
partial C# classes
« on: March 19, 2008, 10:11:43 pm »
Hello,

there is an ugly behavior when one has to handle partial classes.
Especially some UI wizards generate partial classes to separate the
user modifyable code and the always regenerated code from the wizard.

The problem occurs when these partial classes are e.g. reverse engineered.

Doing it this way, one will get n class elements in its package for the n parts existing in the n implementation files.

The ugly behavior is, when one has to do some sequence or class diagrams.

You never know in which class element the method, association, property etc. is, you currently need.

That means that you select in 50% (when having 2 parts) the wrong element. A worse case is, that you have n elements with the same name on your diagrams to be able showing the information you want to elaborate.

It would be better if EA wrappes these parts into a single element, which offers all properties, methods, attributes of all partial implementations.

That would be a great help.

What do you recon?

Michael