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