title: Expressions inside C# 8 switch
body: <p>I'd like to be able to call a method/local function from within the new C# switch expression pattern matching.</p>
  <p>Here's an example I've got:</p>
  <pre><code>        string result = value switch
          {
              IsFizz(value) =&gt; &quot;Fizz&quot;,
              IsBuzz(value) =&gt; &quot;Buzz&quot;,
              (IsFizz(value) &amp;&amp; IsBuzz(value)) =&gt; &quot;FizzBuzz&quot;,
              _ =&gt; value.ToString()
          };
  </code></pre>
  <p>However I get the follow errors:</p>
  <blockquote>
  <p>A single-element deconstruct pattern requires some other syntax for
  disambiguation. It is recommended to add a discard designator '_'
  after the close paren ')'.</p>
  <p>Sytnax error, '=&gt;' expected</p>
  <p>Invalid expression term '&amp;&amp;'</p>
  </blockquote>
  <p>Is it not possible to use new the switches in this manner?</p>