How do I get enum value from text?

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.

Leave a Reply

Your email address will not be published. Required fields are marked *