Generic String to Enum validator
I have to validate a CSV file with a bunch of columns. Some of them need to map to various enum types. I know how to validate string value against a specific enum type, but I would like to have a generic validation method where I would pass in string value and enum type and get validation result. So far I have this: