错误写法:
var data = new JArray() {"hello","world" };
var list = data.ToList<string>();
以上写法会提示错误如下:
正确写法:
var data = new JArray() {"hello","world" };
var list = data.ToObject<List<string>>();
标签:Newtonsoft,C#,写法,JArray,var,data
From: https://www.cnblogs.com/qingheshiguang/p/17123341.html