-Fixed Metro cert verification error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user