To convert from a string, you need to use the static Enum. Parse() method , which takes 3 parameters. The first is the type of enum you want to consider. The syntax is the keyword typeof() followed by the name of the enum class in brackets.
To convert from a string, you need to use the static Enum. Parse() method , which takes 3 parameters. The first is the type of enum you want to consider. The syntax is the keyword typeof() followed by the name of the enum class in brackets.