小编Mia*_*Mia的帖子

RestSharp - WP7 - 无法将XML反序列化为列表

我在Windows Phone 7.1项目中使用RestSharp.

我有一个XML格式的响应位置: https://skydrive.live.com/redir.aspx?cid=0b39f4fbbb0489dd&resid=B39F4FBBB0489DD!139&parid=B39F4FBBB0489DD!103&authkey=!AOdT-FiS6Mw8v5Y

我试图反序化对类的响应:

public class fullWall
{
    public _user user { get; set; }
    public int numberOfFriend { get; set; }
    public int numberOfPhoto { get; set; }
    public List<timhotPhotos> timhotPhotos { get; set; }
    public fullWall()
    {
        timhotPhotos = new List<timhotPhotos>();
    }
}
Run Code Online (Sandbox Code Playgroud)

timhotPhotos列表外,所有属性都可以,您可以在此处看到:

timhotPhotos类:

public class timhotPhotos
{
    public string id { get; set; }
    public string title { get; set; }
    public string description { get; set; }
    public string url { …
Run Code Online (Sandbox Code Playgroud)

windows-phone-7 restsharp deserialization c#-4.0

5
推荐指数
1
解决办法
954
查看次数