title: How to Compare Flags in C#?
body: <p>I have a flag enum below.</p>
  
  <pre><code>[Flags]
  public enum FlagTest
  {
      None = 0x0,
      Flag1 = 0x1,
      Flag2 = 0x2,
      Flag3 = 0x4
  }
  </code></pre>
  
  <p>I cannot make the if statement evaluate to true.</p>
  
  <pre><code>FlagTest testItem = FlagTest.Flag1 | FlagTest.Flag2;
  
  if (testItem == FlagTest.Flag1)
  {
      // Do something,
      // however This is never true.
  }
  </code></pre>
  
  <p>How can I make this true?</p>