Book a Demo

Author Topic: namespace alias in parameters - c#  (Read 3048 times)

idof

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
namespace alias in parameters - c#
« on: February 06, 2006, 09:09:20 am »
Hi all,
I use namespace alias if c# to specify alternative names for my namespaces in the code.
When I add an operation to a class and state that the parameter type of the parameters is myAlias.myType, everything works ok, but when I press the "save" button, the "myAlias" is deleted, probably because "myType" is recognized by EA (since I've added this class to the package).
Is there a way to make it stick so I won't have to fix the code every time it's generated ?

Thanks,
Ido.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8105
  • Karma: +119/-20
    • View Profile
Re: namespace alias in parameters - c#
« Reply #1 on: February 06, 2006, 02:08:32 pm »
This is a problem with the way the inplace editor handles types.  You can get around it by openning the parameters dialog and typing the path in there.

idof

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: namespace alias in parameters - c#
« Reply #2 on: February 07, 2006, 12:23:30 am »
Hi,
I tried doing that but what happened is this:
1. I've created a new method (operation)
2. Pressed the parameters button
3. Added patameters with aliases
4. Saved the operation info
So far it works, but ... :
5. Changed the name of the operation
6. pressed "save" again
In the second save, the EA automatically removes the aliases from the parameters, even though I haven't touched that field.