G
Guest
Hi,
Is there a way (short of looping through every value) to determine the
maximum value of an enum?
So if I have this enum:
enum GradeLevel: byte
{
Unknown = 0,
GradePreK = 1,
GradeK = 2,
Grade1 = 3,
Grade2 = 4
}
The max value is 4 (not 255).
Thank You
-Keith
Is there a way (short of looping through every value) to determine the
maximum value of an enum?
So if I have this enum:
enum GradeLevel: byte
{
Unknown = 0,
GradePreK = 1,
GradeK = 2,
Grade1 = 3,
Grade2 = 4
}
The max value is 4 (not 255).
Thank You
-Keith