Hi everybody,
I now have a code like this in a few places:
parameter.Value = Convert.ToDecimal(parameterValue, CultureInfo.InvariantCulture);
In that method I also added CultureInfo.InvarianCulture to conversions to Int, Double, etc.
The problem is that now passing empty string throws an error. I can add checking for empty strings and using "0" instead but is there a more elegant solution so I would not need to fix in many places?
Thanks in advance.
If it's not broken, fix it until it is.
My Blog