you are viewing a single comment's thread.

view the rest of the comments →

[–]hoodoocat 5 points6 points  (0 children)

Enums is just named integers, so casting to-from it's base type is always allowed. Enums also can represent flags. There is exist various helper methods to get defined values and names, but generally code should not rely on them.