Given:
type
TMyEnum = enum
valueA = (0, "my value A"),
valueB = "value B",
Can I convert a string representation back to enum?
var e: TMyEnum = enumToString("value B")
Is there such enumToString function equivalent in standard library or should one define a hashtable with string->enum mapping?