M
Mr. X.
I have Declared
Dictionary<string, string> myDict;
I want to search all the keys values.
What's wrong of the following :
string keyStr;
string valueStr;
....
for (i = 0; i <= myDict.Count - 1; i++)
{
keyStr = (string)(myDict.Keys); // ***** this doesn't
compile ! what should I write instead *******
valueStr = myDict[keyStr];
}
Thanks
Dictionary<string, string> myDict;
I want to search all the keys values.
What's wrong of the following :
string keyStr;
string valueStr;
....
for (i = 0; i <= myDict.Count - 1; i++)
{
keyStr = (string)(myDict.Keys); // ***** this doesn't
compile ! what should I write instead *******
valueStr = myDict[keyStr];
}
Thanks