Alex Rivera | Logout

How to update the value stored in Dictionary in C#?

Asked 2009-08-07T09:02:11.787
682

How to update value for a specific key in a dictionary Dictionary<string, int>?

Edit
Report

1 Answer

1072

Just point to the dictionary at given key and assign a new value:

myDictionary[myKey] = myNewValue;
answered 2009-08-07T09:04:27.240

Your Answer