-Fixed Metro cert verification error

This commit is contained in:
James Newton-King
2012-06-02 23:04:02 +12:00
parent 9396ea0994
commit ab8b06c47b
2 changed files with 1 additions and 12 deletions
@@ -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