Skip to content

Commit 3ac9125

Browse files
author
Michael Hallett
committed
Merge branch 'monkey-g-patch-1'
2 parents 166c698 + ed2fd18 commit 3ac9125

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)