I get a string from input ,I want to give it a index like the following:
For example:
string Name = "Jack"
There are 5 possibilities :
Jack = 1,
Alice = 2,
Stiven = 3,
Alex = 4,
Katrin = 5
when I get Name from input I want to go through this enum class and get the index of it