How to get the Enum Index value in C#
Firstly, there could be two values that you’re referring to: Underlying Value If you are asking about the underlying value, which could be any of these types: byte, sbyte, short, ushort, int, uint, long or ulong Then you can simply cast it to it’s underlying type. Assuming it’s an int, you can do it like … Read more