venerable bede
Nov 10th, 2006, 03:31 AM
I am struggling to get my pea brain around this one.
I want to create a static class which holds an enumeration. Something like :
Static class enumTypes
{
public enum choice
{
choice1, choice2
}
}
I want to be able to do something like this :
If (myThingy = enumTypes.choice.choice1)
{
//do something
}
else
{
//do something else
}
The exact syntax is troubling me because I am silly.
I want to create a static class which holds an enumeration. Something like :
Static class enumTypes
{
public enum choice
{
choice1, choice2
}
}
I want to be able to do something like this :
If (myThingy = enumTypes.choice.choice1)
{
//do something
}
else
{
//do something else
}
The exact syntax is troubling me because I am silly.