Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit c25f6e9

Browse files
committed
Fix SimpleJson bug where it fails to properly deserialize List<>
1 parent f97eaad commit c25f6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Api/Helpers/SimpleJson.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ protected virtual string MapClrMemberNameToJsonFieldName(string clrPropertyName)
12741274

12751275
internal virtual ReflectionUtils.ConstructorDelegate ContructorDelegateFactory(Type key)
12761276
{
1277-
return ReflectionUtils.GetContructor(key, key.IsArray ? ArrayConstructorParameterTypes : EmptyTypes);
1277+
return ReflectionUtils.GetContructor(key, (key.IsArray || ReflectionUtils.IsAssignableFrom(typeof(IList), key))? ArrayConstructorParameterTypes : EmptyTypes);
12781278
}
12791279

12801280
internal virtual IDictionary<string, ReflectionUtils.GetDelegate> GetterValueFactory(Type type)

0 commit comments

Comments
 (0)