I want to access a double value form a JToken like this:
token{{ "title": 4, "value1": 42.78875, "value2": -90.255, }}
I have some solution.
One: double d=token ["value1"].Value ()
Second: string s= token["value1"].ToString ()
Third: double d=(double) token["value1"];
As I know first solution not supported by Xamarin and when I use it my app do not worked right.
Regarding to second solution, when the device running your app using languages except english it faced with error. For example when using France Dutch or etc the ToString() Method use localization settings and parse with problems.
Third solution also cause with errors whith specific values.
Do any body know any other solutions?