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