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