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

Commit 446ea9c

Browse files
committed
Use PCL friendly IsValueType() ext method
1 parent bf1ac28 commit 446ea9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/AutoMappingUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static T ConvertTo<T>(this object from)
2525
return (T)from;
2626
}
2727

28-
if (from.GetType().IsValueType)
28+
if (from.GetType().IsValueType())
2929
{
3030
return (T)Convert.ChangeType(from, typeof(T));
3131
}

0 commit comments

Comments
 (0)