In the last post I described how you can cast an c# enumeration. In my second post I show how you can enumerate an enumeration. It is very simple. Let’s say we have an enum: Now you can easily get the names by:
Cast int to enum in C#
In this post I want to present an easy way to cast an int to an enum in C#. It is very easy and straight forward: From a string: From an int: That’s all! Have a nice day!