I have defined a Dictionary
as follows:
Dictionary<string, double> collection = new Dictionary<string, double>();
Now i want to update my Value:
foreach (KeyValuePair<string, double> pair int collection)
{
double val = 3.0;
collection[pair.Value] = val; // Get an error
}
My error is Cannot convert from double to string. Why is that ?