Given the following flags,
[Flags] public enum Operations { add = 1, subtract = 2, multiply = 4, divide = 8, ev
Duplicate:
See How to Compare Flags in C#?
C# 4 introduces the Enum.HasFlags() method.
However, see What is it that makes Enum.HasFlag so slow? if perfomance is an issue.