If I have an enum of char’s
public enum Action
{
None,
Address = 'A',
Amendment = 'C',
Normal = 'N'
}
What is the best way to parse a single character string to match the corresponding enum char and match None if not found. TryParse matches the Name and not the value.
For instance if the string I had were “C” I would want to get Action.Amendement
Thanks in advance
and: