title: C# Comparison shorthand
body: <p>I have this code:</p>
  
  <pre><code>    if (y == a &amp;&amp; y == b &amp;&amp; y == c &amp;&amp; y == d ...)
      {
          ...
      }
  </code></pre>
  
  <p>Is there some form of shorthand so that I can rewrite it as something like this?</p>
  
  <pre><code>    if(y == (a &amp;&amp; b &amp;&amp; c &amp;&amp; d ...))
      {
          ...
      }
  </code></pre>
  
  <p>The functionality should be exactly the same. I'm just looking for something that looks less confusing.</p>
  
  <p><strong>EDIT</strong> Sorry for not clarifying, all the variables are integers. I'm looking for a shorter way to ensure that <code>a</code>, <code>b</code>, <code>c</code>, <code>d</code>, ... all equal <code>y</code>.</p>