title: How to use c# tuple value types in a switch statement
body: <p>I'm using the new tuple value types in .net 4.7. In this example I am trying to make a switch statement for one or more cases of a tuple:</p>
  
  <pre><code>using System;
  namespace ValueTupleTest
  {
      class Program
      {
          static void Main(string[] args)
          {
              (char letterA, char letterB) _test = ('A','B');
              Console.WriteLine($"Letter A: '{_test.letterA}', Letter B: '{_test.letterB}'");
  
              switch (_test)
              {
                  case ('A', 'B'):
                      Console.WriteLine("Case ok.");
                      break;
              }
  
          }
      }
  }
  </code></pre>
  
  <p>This does not compile unfortunately.</p>
  
  <p>How do I take a tuple and make cases in a switch statement correctly?</p>