title: How can we simplify this switch expressions in C#?
body: <p>Here is a switch function:</p>
  <pre><code>public static void Main(string[] args)
  {
      int level = 5;
  
      var indicator = level switch
      {
          1 =&gt; &quot;C&quot;,
          2 =&gt; &quot;R&quot;,
          3 =&gt; &quot;R&quot;,
          5 =&gt; &quot;R&quot;,
          6 =&gt; &quot;R&quot;,
          _ =&gt; &quot;D&quot;
      };
  
      Console.ReadKey();
  }
  </code></pre>
  <p>Here all the 2,3,5,6 will return the same result &quot;R&quot;, I try to add the key word &quot;<strong>or</strong>&quot;, but there will be a Compile Error. Is there a way to simplify it? thanks.</p>
  <pre><code>public static void Main(string[] args)
  {
      int level = 5;
  
      var indicator = level switch
      {
          1 =&gt; &quot;C&quot;,
          2 or 3 or 5 or 6 =&gt; &quot;R&quot;,
          _ =&gt; &quot;D&quot;
      };
  
      Console.ReadKey();
  }
  </code></pre>