title: Initialiazation error cause by Out Parameter in C# function
body: <p>I have the following code:</p>
  
  <pre><code>double dd;
  Dictionary&lt;string, double&gt; dic = new Dictionary&lt;string,double&gt;();
  bool notin = this.summedVars.TryGetValue(bacino, out dic);
  if(notin == false)
      this.summedVars.Add(bacino,dic);
  dic.TryGetValue(id, out dd);
  dic[id] = dd + d;
  </code></pre>
  
  <p>When I run it I get the error:</p>
  
  <blockquote>
    <p>dic is set to a null reference</p>
  </blockquote>
  
  <p>How do I initialize <code>summedVars</code> with a new <code>Dictionary</code> without adding values?</p>