Possible Duplicate:
Enums returning int value
I want to numerate "Stack", "Overflow" and "Stackoverflow". Therefore I use enumerate.
enum Status : int
{
     Stack = 1,
     Overflow = 2,
     StackOverflow = 3
}
But when I want to get value of Stack, I get "Stack".
int status = 0;
status = Status.Stack; //I want to assign 1 to status but Status.Stack returns "Stack"
How can I do it?
 
     
    