EDIT : I had tried these two ways before -
List<double> doubleList =
stringList.ConvertAll(x => (double)x);
List<double> doubleList =
stringList.Select(x =>
(double)x).ToList();
and got this error:
Cannot convert type 'string' to'double'
I read about something similiar that convert ints to doubles...but I have List of strings which I need to convert to List of doubles and the ConvertAll() does not work neither the Select extension method. Can anyone please help me out.
See Question&Answers more detail:os