I have several large enums that are used like
switch(someEnumValue)
{
case SomeEnum.Value1:
DoSomething();
break;
case SomeEnum.Value2:
DoSomethingElse();
break;
...
case someEnum.ValueBigNumber:
break;
}
Is there a way in Visual Studio 2010 for me to see what the integer value of someEnum.SomeValue is without actually running the program and without manually counting the values in the enum definition?
There is nothing built in for this, though you can define the enumerations with the actual integer values directly, so one look at the enum declaration will tell you the members value: