Here is my code for Enum:
enum Tempurature
{
Low = 2,
Medium,
High,
};
Temperature value = Tempurature.Medium;
int val = (int)value;
Console.WriteLine("Temperature value is.." + val);
Output is : Temperature value is.. 3
Now I want same output as 3 but instead of providing Tempurature.Medium, I want to send Medium in variable value.
How can i do this?
Is this possible or not?