RestSharp: Execute <T> () with T having the IEnumerable property
I noticed that using RestSharp: Execute<T>()when T is lower
public class Result
{
public List<DBData> Data { get; set; }
public int Total { get; set; }
public bool Success { get; set; }
}
It deserialized JSON from Execute<Result>()correctly into a Result object, however, when the class has an IEnumerable property similar to below
public class Result
{
public IEnumerable<DBData> Data { get; set; }
public int Total { get; set; }
public bool Success { get; set; }
}
Execute<Result>() does not populate (deserialize) the result of the object.
I suspect this is because it IEnumerable<T>is read-only, and Restsharp cannot deserialize the data because of this? This is true?
+4