How to update the value stored in Dictionary in C#?

c#, dictionary

Solution

Just point to the dictionary at given key and assign a new value:

myDictionary[myKey] = myNewValue;

Problem

How to update value for a specific key in a dictionary `Dictionary<string, int>`?

Original source