Book a Demo

Author Topic: Import VB.NET Source Code: Enumerations  (Read 3056 times)

GMuys

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • e-Commerce Solutions
    • View Profile
Import VB.NET Source Code: Enumerations
« on: December 02, 2002, 08:22:39 pm »
Hello,

I started playing with importing source code from prior VB.NET projects and I am wondering where the specified value of an enumerated element is stored in EA. Example:

Public Enum FolderPermissions
 Read = 1
 Write = 2
 Delete = 3
End Enum

When importing this enumeration, EA creates a class with a stereotype of "enumeration". Each enumerated element is an attribute of the class. But the values (integers in my example above) of these elements do not show in the "Initial" field of the dialog.

Furthermore, I was expecting to see these attributes declared as "Const", but this is not the case.

Is EA doing the wrong thing or do I have wrong expectations?

Thanks for any clarification you might be able to bring...

Gilles