title: C# Switch statement with/without curly brackets.... what's the difference?
body: <p>Has C# always permitted you to omit curly brackets inside a <code>switch()</code> statement between the <code>case:</code> statements?</p>
  
  <p>What is the effect of omitting them, as javascript programmers often do?  </p>
  
  <p>Example:</p>
  
  <pre><code>switch(x)
  {
    case OneWay:
    {                               //  &lt;---- Omit this entire line
      int y = 123;
      FindYou(ref y);
      break;
    }                               //  &lt;---- Omit this entire line
    case TheOther:
    {                               //  &lt;---- Omit this entire line
      double y = 456.7; // legal!
      GetchaGetcha(ref y);
      break;
    }                               //  &lt;---- Omit this entire line
  }
  </code></pre>