title: Value is in enum list
body: <p>I have a fairly basic question: How can I check if a given value is contained in a list of enum values?</p>
  
  <p>For example, I have this enum:</p>
  
  <pre><code>public enum UserStatus
  {
      Unverified,
      Active,
      Removed,
      Suspended,
      Banned
  }
  </code></pre>
  
  <p>Now I want to check if <code>status in (Unverified, Active)</code></p>
  
  <p>I know this works:</p>
  
  <pre><code>bool ok = status == UserStatus.Unverified || status == UserStatus.Active;
  </code></pre>
  
  <p>But there has to be a more elegant way to write this.</p>
  
  <p>The topic of <a href="https://stackoverflow.com/questions/164425/determining-if-enum-value-is-in-list-c">this question</a> is very similar, but that's dealing with flags enums, and this is not a flags enum.</p>