update dictionary value by key C# code code example Example: dictionary update c# myDictionary[myKey] = myNewValue;