Comparing a variable to multiple values
<p>Quite often in my code I need to compare a variable to several values :</p>

<pre><code>if ( type == BillType.Bill || type == BillType.Payment || type == BillType.Receipt )
{
  // Do stuff
}
</code></pre>

<p>I keep on thinking I can do :</p>

<pre><code>if ( type in ( BillType.Bill, BillType.Payment, BillType.Receipt ) )
{
   // Do stuff
}
</code></pre>

<p>But of course thats SQL that allows this.</p>

<p>Is there a tidier way in C#?</p>
