title: Dictionary ContainsKey and get value in one function
body: <p>Is there a way to call <code>Dictionary&lt;string, int&gt;</code> once to find a value for a key? Right now I'm doing two calls like.</p>
  
  <pre><code>if(_dictionary.ContainsKey("key") {
   int _value = _dictionary["key"];
  }
  </code></pre>
  
  <p>I wanna do it like:</p>
  
  <pre><code>object _value = _dictionary["key"] 
  //but this one is throwing exception if there is no such key
  </code></pre>
  
  <p>I would want null if there is no such key or get the value with one call?</p>