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