You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deserializing a Generic List (as in the example below), SimpleJson throws TargetParameterCountException when the Target framework for the Project is set to .NET 2.0.
I think the problem is caused by ContructorDelegateFactory in SimpleJson.PocoJsonSerializerStrategy which calls ReflectionUtils.GetContructor to get a constructor for the generic List with no arguments. The constructor is later invoked (by DeserializeObject) with the number of items in the list as first and only argument.
If I change the code in ContructorDelegateFactory to account for Lists, it seems to work:
When deserializing a Generic List (as in the example below), SimpleJson throws
TargetParameterCountException
when the Target framework for the Project is set to .NET 2.0.I think the problem is caused by
ContructorDelegateFactory
inSimpleJson.PocoJsonSerializerStrategy
which callsReflectionUtils.GetContructor
to get a constructor for the generic List with no arguments. The constructor is later invoked (byDeserializeObject
) with the number of items in the list as first and only argument.If I change the code in
ContructorDelegateFactory
to account for Lists, it seems to work:The text was updated successfully, but these errors were encountered: