I\'ve got an Enum marked with the [Flags] attribute as follows:
[Flags] public enum Tag : int { None = 0, PrimaryNav = 1, HideChildPages = 2,
For bitwise (Flags) enums, an "any of" test is != 0, so:
Flags
const Tag flagsToLookFor = Tag.PrimaryNav | Tag.HomePage; if ((node.Tag & flagsToLookFor) != 0) { // has some cross-over with PrimaryNav or HomePage (and possibly others too) }