Código
internal enum Extensive { }
public static bool IsBitwise(this Enum pos, Enum comparer)
{
return ((Extensive)pos & (Extensive)comparer) != 0;
}
Uso
public enum Test { valueA, valueB, valueC }
public void Method()
{
var test = Test.valueA | Test.valueC;
test.IsBitwise(Test.valueA); //true
test.IsBitwise(Test.valueB); //false
test.IsBitwise(Test.valueC); //true
}