.Net Tips – converting between Enum and string
If you’re reading this then you should already know what an enum is in C# and that the underlying type of an enum element is int and you can convert between int and enum using casting: However, sometimes you want to convert an enum element to and from strings instead of ints because: they’re more …