IsSet
I did not write this I just found it very useful, check http://stackoverflow.com/questions/7244 for original post.
Source
public static bool IsSet(this Enum input, Enum matchTo)
{
return (Convert.ToUInt32(input) & Convert.ToUInt32(matchTo)) != 0;
}
Example
MyEnum tester = MyEnum.FlagA | MyEnum.FlagB;
if(tester.IsSet(MyEnum.FlagA))