How do I assign a string value to an enum?

Parse the string value into an Enum Enum. Parse(Type enumType,string value) – This method directly parses the string representation of the name or numeric value of enum member into enumType object. If the string representation of the name is not found, then it will give the exception.

Sizin İçin Seçtik  How do you create an enum with two values?

Leave a Reply

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