We have a big Enum class for EDI Fields, just to make a short example, the enums are declared like:
[Description("Ebene")]
Ebene,
[Description("Zaehlpunktdaten")]
Zaehlpunktdaten,
[Description("Zaehlpunkt")]
Zaehlpunkt,
. .
Well, the enums works fine when you retrieve them by EDIEnums.Zaehlpunktdaten.ToString()
, but in some other projects, it returns a wrong value.
If I add a new one in the beginning will return exactly the next one, in this example, if I just had added Ebene
and I want to retrieve Zaehlpunktdaten
, it will return me Zaehlpunkt
.
We have tried also with =0
, =1
, =2
etc, and it doesn't work neither. Also with local references.
Any ideas about what is happening?