G
Guest
Hi all
I need a string type with only three possible values: let's say "A", "B",
"C".
In other words, I need something like enum but of string type:
enum MyStrings {
sA = "A",
sB = "B",
sC = "C"
}
....
MyStrings x;
...
switch(x)
{
case MyStrings.sA:
}
Is there any way to do something like this?
Thank you
Alex
I need a string type with only three possible values: let's say "A", "B",
"C".
In other words, I need something like enum but of string type:
enum MyStrings {
sA = "A",
sB = "B",
sC = "C"
}
....
MyStrings x;
...
switch(x)
{
case MyStrings.sA:
}
Is there any way to do something like this?
Thank you
Alex