[.NET]JValue.Parse JToken.Parse 在 async Method 中使用要小心

Newtonsoft.Json 使用的是 8.0.0.0 版本。

最近使用 JValue.Parse 將 json 字串轉成 dynamic 物件時,
在某個 method 中居然發生 CS1061 的錯誤,如下,
error CS1061: 'object' does not contain a definition for 'DeviceId' and no extension method 'DeviceId' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)    

...繼續閱讀 »