title: How to use && operator in switch statement based on a combined return a value?
body: <p>How can I use <code>&amp;&amp;</code> operator in switch case?</p>
  
  <p>This is what i want to do:</p>
  
  <pre><code>private int  retValue()
  {
      string x, y;
      switch (x &amp;&amp; y)
      {
          case "abc" &amp;&amp; "1":
              return 10;
              break;
           case "xyz" &amp;&amp; "2":
               return 20;
              break;
      }
  }
  </code></pre>
  
  <p>My problem is that <code>"abc"</code> and <code>"1"</code> are both of type <code>string</code> and the compiler gives me message that: </p>
  
  <blockquote>
    <p>"operator &amp;&amp; cannot be applied to string"</p>
  </blockquote>