dictionary c# set value of keys code example Example: dictionary update c# myDictionary[myKey] = myNewValue;