title: Noninitialized variable in C#
body: <p>I have the following piece of code:</p>
  <pre><code>class Foo
  {
  
      public Foo()
      {
          Bar bar;
          if (null == bar)
          {
  
          }
      }
  }
  
  class Bar { }
  </code></pre>
  <p>Code gurus will already see that this gives an error. <em>Bar</em> might not be initialized before the <em>if</em> statement.</p>
  <p>What <em>is</em> the value of bar? Shouldn't it be null? Aren't they set to null? (null pointer?)</p>