More interest than a real need ... is it possible to have an automatically decreasing enum in C # or VB.NET?
public enum testEnum
{
this = -1,
that,
other,
}
So what = -2 and another = -3.
I'm sure the only way to do this is to specifically assign "this" and "other," but I wondered if he had an automatic way to do this.
Edit
To be clear, I'm just talking about automatically assigning a value, not about decreasing the actual value of an enumeration.
source
share