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