title: How to elegantly check if a number is within a range?
body: <p>How can I do this elegantly with C#?</p>
  <p>For example, a number can be between 1 and 100.</p>
  <p>I know a simple <code>if (x &gt;= 1 &amp;&amp; x &lt;= 100)</code> would suffice; but with a lot of syntax sugar and new features constantly added to C#/.Net this question is about more idiomatic (one can all it elegance) ways to write that.</p>
  <p>Performance is not a concern, but please add performance note to solutions that are not O(1) as people may copy-paste the suggestions.</p>