title: How to update value of a key in dictionary in c#?
body: <p>I have the following code in c# , basically it's a simple dictionary with some keys and their values.</p>
  
  <pre><code>Dictionary&lt;string, int&gt; dictionary =
      new Dictionary&lt;string, int&gt;();
  dictionary.Add("cat", 2);
  dictionary.Add("dog", 1);
  dictionary.Add("llama", 0);
  dictionary.Add("iguana", -1);
  </code></pre>
  
  <p>I want to update the key 'cat' with new value <strong>5</strong>.<br>
  How could I do this? </p>