SyntaxFix
Write A Post
Hire A Developer
Questions
I've got a handy extension method that uses TryParse, as IsDefined is case-sensitive.
public static bool IsParsable<T>(this string value) where T : struct { return Enum.TryParse<T>(value, true, out _); }