I\'ve got an Enum marked with the [Flags] attribute as follows:
[Flags] public enum Tag : int { None = 0, PrimaryNav = 1, HideChildPages = 2,
var someEnumValue = Tag.PrimaryNav | Tag.HomePage;
To test if the enum contains a given value:
if ((someEnumValue & Tag.PrimaryNav) == Tag.PrimaryNav) { }