I am trying to convert a _string[1] to double and _string[2] to Int
this string array is generated dynamically.
string value can be empty or 1.1 or 1 or .1 how can i handle this.
i trying doing like this.
string locale;
locale = System.Web.HttpContext.Current.Request.UserLanguages[0];
CultureInfo culture;
culture = new CultureInfo(locale);
double cValue = Double.Parse(_string[1], culture.NumberFormat)
int sValue = Int32.Parse(_string[2], culture.NumberFormat)
this sometime give me invalid input when there is empty string or decimal string