title: How do I determine if an Enum value has one or more of the values it's being compared with?
body: <p>I've got an Enum marked with the [Flags] attribute as follows:</p>
  
  <pre><code>[Flags]
  public enum Tag : int
  {
      None = 0,
      PrimaryNav = 1,
      HideChildPages = 2,
      HomePage = 4,
      FooterLink = 8
  }
  </code></pre>
  
  <p>On sitemapnodes in my sitemap I store the int value for the tags combination as an attribute.  </p>
  
  <p>What I need to do is check if a node has <strong><em>any one</em></strong> of one or more tags, e.g. Tag.PrimaryNav | Tag.HomePage.</p>
  
  <p>I'm struggling with the necessary boolean logic to determine if an Enum value has one or more of the values it's being compared with.</p>
  
  <p>Apologies if this isn't clear.  I can provide more information if necessary.</p>