Best way to check whether the incrementor in a loop is within a certain range?
<p>I have a loop which loops up to 20.</p>

<p>I am using <strong>C# 4.0</strong> and <strong>LINQ</strong> (Where necessary). What's a good way to say</p>

<p><code>"if i &gt; 3 &amp;&amp; &lt; 5"</code> </p>

<p>but for various bands (eg between 3 and 5, 6, and 8, etc), without loads of if statements in the loops?</p>

<p>Thanks</p>
