title: Selecting Multiple Enum Values when comparing
body: <p>I am trying to select different type of Enum Values when comparing, based on what user selected.</p>
  
  <p>This is my code:</p>
  
  <pre><code>    public enum CategoryType { E1, E2, E3, E4 }
  
      List1.Add(new model{ Line = "Line 1", Category = model.CategoryType.E3| model.CategoryType.E1});
      List1.Add(new model{ Line = "Line 2", Category = model.CategoryType.E2 | model.CategoryType.E1});
      List1.Add(new model{ Line = "Line 3", Category = model.CategoryType.E4  | model.CategoryType.E3});
  
  var   modelEnum = CategoryType.E1 | CategoryType.E3
  
  var ValidLines = List1.Where(P =&gt; P.Category == modeEnum ).ToList()
                        .Select(P =&gt; P.Line).ToList();
  </code></pre>
  
  <p>The above code does not work. Since I am looking for E1 or E3, it should return ANY items that contains E1 or E3. In this case, it should return all 3 items above because all of them contains either E1 or E3.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks</p>