title: Test for multiple values in an if statement in C#
body: <p>Is there a shorthand syntax in C# to make this:</p>
  
  <pre><code>if ((x == 1) || (x==2) || (x==5) || (x==13) || (x==14))
  </code></pre>
  
  <p>... shorter? Something like (hypothetically)</p>
  
  <pre><code>if (x in {1, 2, 5, 13, 14})
  </code></pre>
  
  <p>I "feel" like it exists, I'm just coming up short mentally and Googly. In reality I have to test a bunch of enums frequently and it's just unreadable. I also hate to make a little helper function if the language supports it already.</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>Edit</strong></p>
  
  <p>There are clever solutions involving lists... but I was hoping for a pure logical construct of some kind. If it doesn't exist, so be it. Thanks!</p>