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