Following on from this question what would be the best way to write a Char.IsHex() function in C#. So far I’ve got this but don’t like it:
bool CharIsHex(char c) { c = Char.ToLower(c); return (Char.IsDigit(c) || c == 'a' || c == 'b' || c == 'c' || c == 'd' || c == 'e' || c == 'f') }
From my answer to the question you linked to: