Currently, TryParseEnum<T>(this string source) and TryParseEnumIgnoringCase<T>(this string source) use the constraint of struct and then test to see if an enum is supplied.
Update these to use the struct, Enum constraint instead to remove the need for a check.
Currently,
TryParseEnum<T>(this string source)
andTryParseEnumIgnoringCase<T>(this string source)
use the constraint ofstruct
and then test to see if an enum is supplied.Update these to use the
struct, Enum
constraint instead to remove the need for a check.