Basically a series of titles will be passed into the switch statement and I need to compare them against the string values of the enum. But I have little to no idea how to do th
Why not to use just pure enum and switches?
enum Prefix { doctor, mr, mrs }
Then you can use is like
string case = "doctor"; switch ((Prefix)Enum.Parse(typeof(Prefix), "doctor")) { case Prefix.doctor: ... break; ... default: break; }