-Fixed Metro build

This commit is contained in:
James Newton-King
2012-03-15 19:36:29 +13:00
parent 5800e97ff3
commit 9c7fb730f2
4 changed files with 9 additions and 1 deletions
+4
View File
@@ -584,8 +584,10 @@ namespace Newtonsoft.Json
return ToString(convertible.ToDateTime(CultureInfo.InvariantCulture));
case TypeCode.Decimal:
return ToString(convertible.ToDecimal(CultureInfo.InvariantCulture));
#if !NETFX_CORE
case TypeCode.DBNull:
return Null;
#endif
}
}
#if !PocketPC && !NET20
@@ -629,7 +631,9 @@ namespace Newtonsoft.Json
case TypeCode.Double:
case TypeCode.DateTime:
case TypeCode.Decimal:
#if !NETFX_CORE
case TypeCode.DBNull:
#endif
return true;
default:
return false;