【发布时间】:2012-11-25 00:06:22
【问题描述】:
适用于 Windows 8 应用程序开发环境。
代码:
var deserialized = JsonConvert.DeserializeObject<RootObject>(json);
listView.ItemsSource = deserialized; // error
数据模型:
public class C
{
public List<Y> programs { get; set; }
public string name { get; set; }
public int code { get; set; }
}
public class RootObject
{
public List<C> cs { get; set; }
public string date { get; set; }
}
public class Y
{
public string category { get; set; }
public string time { get; set; }
public string name { get; set; }
}
我能做什么?我没有找到解决方案。
【问题讨论】:
标签: c# windows-8 microsoft-metro