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