title: How to avoid null key errors in dictionary?
body: <p>How to avoid error if key is null?</p>
  
  <pre><code>//Getter/setter
  public static Dictionary&lt;string, string&gt; Dictionary
  {
      get { return Global.dictionary; }
      set { Global.dictionary = value; }
  }
  </code></pre>
  
  <p><strong>UPDATE:</strong></p>
  
  <pre><code>Dictionary.Add("Key1", "Text1");
  Dictionary["Key2"] &lt;-error! so what can I write in the GET to avoid error?
  </code></pre>
  
  <p>Thanks.</p>
  
  <p>regards</p>