level 2
WBTHL147
楼主
地理坐标是double型,但我调用的一个API只能接受int型的。
试过强制转换,但是不行
An exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.ni.dll but was not handled in user code
Additional information: There was an error deserializing the object of type UWP_Weather.Models.RootObject. The value '915.89' cannot be parsed as the type 'Int32'.
有人知道怎么解决吗?
2017年05月01日 10点05分
1
试过强制转换,但是不行
An exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.ni.dll but was not handled in user code
Additional information: There was an error deserializing the object of type UWP_Weather.Models.RootObject. The value '915.89' cannot be parsed as the type 'Int32'.
有人知道怎么解决吗?