restsharp/RestSharp — Issue #201: Json deserializer doesn't work correctly with class containing IEnumerable/IList
Author: jonswaino
Created: 2012-01-12 15:31:18+00:00
State: open

At the moment I have a response class like so:
public class Response
{
public IEnumerable Items { get; set; }
}

The json de-serializer is not able to inflate this into the response data object, neither is it able to do this when swapping IEnumerable out for IList.

Basic look at the code reveals JsonDeserializer.cs carries out a check to see if the target property implements IList or IDictionary. However, the target property is the response class which wraps the target property itself.

Have you any ideas if this is a bug/am using this incorrectly?