From d63099f5da35174cc804d1d165cb6213590d735f Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Fri, 31 Aug 2012 21:06:22 -0700 Subject: [PATCH] -Fixed WinRT build --- .../Package.appxmanifest | 47 +++++-------------- .../Utilities/ReflectionUtils.cs | 4 +- 2 files changed, 13 insertions(+), 38 deletions(-) diff --git a/Src/Newtonsoft.Json.Tests/Package.appxmanifest b/Src/Newtonsoft.Json.Tests/Package.appxmanifest index edbdd557..a2a67efd 100644 --- a/Src/Newtonsoft.Json.Tests/Package.appxmanifest +++ b/Src/Newtonsoft.Json.Tests/Package.appxmanifest @@ -1,54 +1,29 @@  - - - + Newtonsoft.Json.Tests.Metro James Images\UnitTestStoreLogo.png Newtonsoft.Json.Tests.Metro - 6.2 6.2 - - + - - - - - + + + + - - - - - + + + + - - + \ No newline at end of file diff --git a/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs b/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs index 8b6e4541..9216977a 100644 --- a/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs +++ b/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs @@ -1018,10 +1018,10 @@ namespace Newtonsoft.Json.Utilities public static object GetDefaultValue(Type type) { - if (!type.IsValueType) + if (!type.IsValueType()) return null; - switch (Type.GetTypeCode(type)) + switch (ConvertUtils.GetTypeCode(type)) { case TypeCode.Boolean: return false;