Here's what I want to do
string MyEnumType = "SpaghettiDiameter";
string MyEnumValue = "NEEDS_ALL_SAUCE";
//this is not exact syntax - only to represent the logic
//MyEnumValue is converted from string to the type contained in MyEnumType
var Dinner = Convert(MyEnumValue, MyEnumType);
The convert function would need to know how to get from what's in MyEnumType to an actual, declared enum, and would work for any type passed. Compile time conversions would not be possible.
EDIT: I want to create a function "Convert" that will accept two strings - a string naming the enumerated type and a string of the enumerated value. It would not be specific to any given enumerated type. The function would return the enumerated value to a variable of that type.
Is this doable or am I just dreaming?