Hi all
I think it is not complicated but after doing some research I can't find an answer to a simple problem.
I am iterating through keys in a dictionary and I would like to use the key which is a string as a double in some calculation.
If I do this :
foreach (KeyValuePair<string, List<string> price in dictionary)
double ylevel = Convert.ToDouble(price.Key);
It seems to not work and I get a "Input string was not in a correct format" error.
What is the right way to get a double from the key..
Thanks
Bernard