title: C# 8 switch expression with multiple cases with same result
body: <p>How can a switch expression be written to support multiple cases returning the same result?</p>
  <p>With C# prior to version 8, a switch may be written like so:</p>
  <pre><code>var switchValue = 3;
  var resultText = string.Empty;
  switch (switchValue)
  {
      case 1:
      case 2:
      case 3:
          resultText = &quot;one to three&quot;;
          break;
      case 4:
          resultText = &quot;four&quot;;
          break;
      case 5:
          resultText = &quot;five&quot;;
          break;
      default:
          resultText = &quot;unkown&quot;;
          break;
  }
  </code></pre>
  <p>When I am using the C# version 8, with the expression syntax, it's like so:</p>
  <pre><code>var switchValue = 3;
  var resultText = switchValue switch
  {
      1 =&gt; &quot;one to three&quot;,
      2 =&gt; &quot;one to three&quot;,
      3 =&gt; &quot;one to three&quot;,
      4 =&gt; &quot;four&quot;,
      5 =&gt; &quot;five&quot;,
      _ =&gt; &quot;unknown&quot;,
  };
  </code></pre>
  <p>So my question is: How to turn the cases 1, 2 and 3 to just one switch-case-arm so the value doesn't need to be repeated?</p>
  <p><strong>Update per suggestion from &quot;<em>Rufus L</em>&quot;:</strong></p>
  <p>For my given example, this works.</p>
  <pre><code>var switchValue = 3;
  var resultText = switchValue switch
  {
      var x when (x &gt;= 1 &amp;&amp; x &lt;= 3) =&gt; &quot;one to three&quot;,
      4 =&gt; &quot;four&quot;,
      5 =&gt; &quot;five&quot;,
      _ =&gt; &quot;unknown&quot;,
  };
  </code></pre>
  <p>But it's not exactly what I want to accomplish. This is still only one case (with a filter condition), not multiple cases yielding to the same right-hand result.</p>