-Fixed build

This commit is contained in:
James Newton-King
2013-04-01 13:04:37 +13:00
parent b5e7005735
commit 8e14d1c66c
8 changed files with 20 additions and 3 deletions
+2
View File
@@ -687,11 +687,13 @@ namespace Newtonsoft.Json
if (typeCode != PrimitiveTypeCode.Empty && typeCode != PrimitiveTypeCode.Object)
return true;
#if !(PORTABLE || NETFX_CORE)
if (typeof(IConvertible).IsAssignableFrom(t)
|| (ReflectionUtils.IsNullableType(t) && typeof(IConvertible).IsAssignableFrom(Nullable.GetUnderlyingType(t))))
{
return !typeof(JToken).IsAssignableFrom(t);
}
#endif
return false;
}