我的 C# 类
public class City
{
public int City_id { get; set; }
public string City_name { get; set; }
}
public class Model
{
public City[] lstCitiesResult { get; set; }
}
我的代码:
namespace gtp2
{
....
List<Model> li = new List<Model>();
WebClient re = new WebClient();
var data = re.DownloadString("url");
var a = JsonConvert.DeserializeObject<Model>(data);
Response.Write(a.lstCitiesResult.ToString());
....
}
在Response.Write我得到这样的:gtp2.City[] Any Ideya?提前谢谢