A
AMP
Hello,
When I use a Constant:
const int MyAge = 200;
Console.WriteLine(MyAge)
Produces:
200
But when I use :
enum Me
{
MyAge=200
}
Console.WriteLine(Me.MyAge);
I get
MyAge.
I want to use an enum as constant in the same fashion, but I must be
misunderstaning Enums???
Any Help?
Thanks
Mike
When I use a Constant:
const int MyAge = 200;
Console.WriteLine(MyAge)
Produces:
200
But when I use :
enum Me
{
MyAge=200
}
Console.WriteLine(Me.MyAge);
I get
MyAge.
I want to use an enum as constant in the same fashion, but I must be
misunderstaning Enums???
Any Help?
Thanks
Mike