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