Generic Dictionary Change Value?

I've been trying to chage a value in a Generic Dictionary, but no change or error occurs. I've found only this link concerning updating Generic Dictionary values: http://msdn.microsoft.com/en-us/library/xfhwa508(VS.80).aspx

Dictionary<string, string> GenDictionary = new Dictionary<string, string>();

GenDictionary.Add("1","Testing");

if(GenDictionary.ContainsKey("1"))
{
    GenDictionary["1"] = "Hello";
}
pointemanAsked:
Who is Participating?
 
ToddBeaulieuCommented:
Works just fine as-is for me!
0
 
pointemanAuthor Commented:
Yes, it's puzzling....
0
 
ToddBeaulieuCommented:
So then this question isn't really needed then, right, since there's no problem?!
0
 
pointemanAuthor Commented:
Had to restart Visual Studio.... Thanks for checking my code example
0
 
pointemanAuthor Commented:
Only problem is my computer it seems...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.