How can I parse a string in VB.NET to enum value?
Example I have this enum:
Public Enum Gender NotDefined Male Female End Enum
Dim val = DirectCast([Enum].Parse(GetType(Gender), "Male"), Gender)