Decreasing Value In C# Or .NET Enum?Apr 23, 2012
More for interest than actual need.is it possible to have an automatically decreasing enum in C# or VB.NET?
public enum testEnum
this = -1,
So that that = -2 and other = -3.I'm pretty sure the only way to do it is to specifically assign "that" and "other", but I wondered if there was an automatic way of doing it.
Edit To be clear, I'm simply talking about the automatic assignment of the value, not the actual value of the enum decreasing.