From ab8b06c47b1db4f572f23ddf5aa4e721521c2aec Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sat, 2 Jun 2012 23:04:02 +1200 Subject: [PATCH] -Fixed Metro cert verification error --- .../Utilities/DynamicReflectionDelegateFactory.cs | 2 +- Src/Newtonsoft.Json/Utilities/TypeExtensions.cs | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/Src/Newtonsoft.Json/Utilities/DynamicReflectionDelegateFactory.cs b/Src/Newtonsoft.Json/Utilities/DynamicReflectionDelegateFactory.cs index 5409c24d..8648d834 100644 --- a/Src/Newtonsoft.Json/Utilities/DynamicReflectionDelegateFactory.cs +++ b/Src/Newtonsoft.Json/Utilities/DynamicReflectionDelegateFactory.cs @@ -44,7 +44,7 @@ namespace Newtonsoft.Json.Utilities { DynamicMethod dynamicMethod = !owner.IsInterface() ? new DynamicMethod(name, returnType, parameterTypes, owner, true) - : new DynamicMethod(name, returnType, parameterTypes, owner.Module(), true); + : new DynamicMethod(name, returnType, parameterTypes, owner.Module, true); return dynamicMethod; } diff --git a/Src/Newtonsoft.Json/Utilities/TypeExtensions.cs b/Src/Newtonsoft.Json/Utilities/TypeExtensions.cs index fbfe7cf9..e2a3ab8c 100644 --- a/Src/Newtonsoft.Json/Utilities/TypeExtensions.cs +++ b/Src/Newtonsoft.Json/Utilities/TypeExtensions.cs @@ -96,17 +96,6 @@ namespace Newtonsoft.Json.Utilities #endif } -#if !PORTABLE - public static Module Module(this Type type) - { -#if !NETFX_CORE - return type.Module; -#else - return type.GetTypeInfo().Module; -#endif - } -#endif - public static bool ContainsGenericParameters(this Type type) { #if !NETFX_CORE