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