I would like to convert object (which holds a string) to double and if it fails (it contains a string which cannot be converted to double) to convert it to string, so that I would have a List<object> with doubles and strings.
I have something like this :
(thisNavigator is XPathNavigator)
object paramValue;
paramValue = Convert.ToDouble(thisNavigator.ValueAsDouble);
Something like this maybe?