Considering this:
[Flags] public enum MyEnum { One = 1, Two = 2, Four = 4, Eight = 8 } public static class FlagsHelper { public static bool
This is an example of something that should work.
public static bool IsValid(this T value) { return Enum.IsDefined(value.GetType(), value); }