Removed support for .NET 2.0 RTM (we now require at least SP1). Formally, 0.40 already doesn't support RTM, but it still worked, now it no longer works.

This commit is contained in:
jfrijters 2009-05-24 05:42:20 +00:00
Родитель 9b4f8d0c0e
Коммит 1ba8f67f51
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -289,16 +289,9 @@ static class DynamicMethodUtils
{
// apparently we don't have full trust, so we try again with .NET 2.0 SP1 method
// and we only request restrictSkipVisibility if it is required
return CreateNET20SP1(name, returnType, paramTypes, nonPublic);
return new DynamicMethod(name, returnType, paramTypes, nonPublic);
}
}
private static DynamicMethod CreateNET20SP1(string name, Type returnType, Type[] paramTypes, bool nonPublic)
{
// this needs to be in a separate method, because this constructor doesn't exist on .NET 2.0 RTM
// (and the JIT will turn the entire calling method into a "throw new MethodMissingException()")
return new DynamicMethod(name, returnType, paramTypes, nonPublic);
}
}
namespace IKVM.NativeCode.java