1
Vote

Value parsing issue due to culture assumption

description

Hi,

In the DataServiceContextHandler there is a function GetPropertyValue where the values of the OData service are converted to the resulting dynamic object. For example decimals are converted with:
return Decimal.Parse(property.Value);
This will result in incorrect values if the culture is for example Dutch (decimal characters are "," instead of "."
Could you change the code to:
return Decimal.Parse(property.Value, System.Globalization.CultureInfo.InvariantCulture);
Thnx.

comments