Is there a concise way to check if an int variable is equal to a series of ints? | C#
<p>Rather than something like this:</p>

<pre><code>switch (id) {
case 2:
case 5:
case 11:
case 15:
...
}
</code></pre>

<p>Is there a concise way to check if an int variable is equal to any one of a series of integers? Maybe something like <code>if (id == {2|5|11|15}) ...</code>?</p>
