P
PJ
I have a couple of different enums. Let's say:
enum Beer
{
Bud, Coors, Michelob
}
enum Woman
{
Blonde, Brunnette, Redhead
}
I want to create an instance of one of these enums from a string. I don't
know which enum it's going to be. I just have a string that tells me.
Say: "Beer.Michelob"
How would I accomplish this? Thank you.
~PJ
enum Beer
{
Bud, Coors, Michelob
}
enum Woman
{
Blonde, Brunnette, Redhead
}
I want to create an instance of one of these enums from a string. I don't
know which enum it's going to be. I just have a string that tells me.
Say: "Beer.Michelob"
How would I accomplish this? Thank you.
~PJ