Possible Duplicate:
Cast a String to an Enum Tag in C#
How to convert a string which have a name of existing enum-TAG (have name of Enum Title) to become of type of Enum
Not to become one of the Enum listed variables values,
But to be the Enum-Tag name which is of type Enum?
For instance, I might have
Enum MyEnum { A,B,C,D };
and then
String a = "MyEnum";