If I have an enumeration like
enum values {
var1 = 12,
var2 = 23,
var3 = 34
};
is it possible to get the value from
string str = "var2";
// Get values::str;
I have tried creating an enum variable and assigning the variable str to it, but this gives a type mismatch error.