I have searched this online, but I can\'t find the answer I am looking for.
Basically I have the following enum:
public enum typFoo : int { itemA
If you need only the name you don't have to create that dictionary at all.
This will convert enum to int:
int pos = (int)typFoo.itemA;
This will convert int to enum:
typFoo foo = (typFoo) 1;
And this will retrun you the name of it:
((typFoo) i).toString();