Skip to content

Commit ed2fd18

Browse files
author
Michael Hallett
committed
Merge branch 'master' of git://github.com/monkey-j/RestSharp into monkey-g-patch-1
Conflicts: RestSharp/Deserializers/JsonDeserializer.cs
2 parents 166c698 + e162a5c commit ed2fd18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RestSharp/Deserializers/JsonDeserializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ private IList BuildList(Type type, object parent)
149149
{
150150
if (itemType.IsPrimitive)
151151
{
152-
var value = element.ToString();
153-
list.Add(value.ChangeType(itemType, Culture));
152+
var item = ConvertValue(itemType, element);
153+
list.Add(item);
154154
}
155155
else if (itemType == typeof(string))
156156
{

0 commit comments

Comments
 (0)