title: Floating curly braces in C#
body: <p>I ran across a piece of C# code today I had not seen before. The programmer defined a block of code using only curly braces (no if, class, function, etc).</p>
  
  <pre><code>{
      int i = 0;
  }
  i++; //compile error
  </code></pre>
  
  <p>Is there a purpose to this other than making the code look more organized? Is it good, bad, or whatever practice to use this "floating" contexts?</p>