What to consider when using Enums is not to use any operations that require reflection (or use them with caution). For example:
- myEnumValue.ToString ().
- Enum.Parse ()
- Enum.IsDefined ()
- Enum.GetName ()
- Enum.GetNames ()
, , . . .
, , / enum, 5% (, API). , , .
, , enum vs. constant , . , , .