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