Bug fix. MethodInfo.GetGenericMethodDefinition() should reset the ReflectedType.

This commit is contained in:
jfrijters 2012-04-18 08:39:43 +00:00
Родитель 3ea85da03a
Коммит 3563bf2809
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -243,12 +243,12 @@ namespace IKVM.Reflection
public override MethodInfo MakeGenericMethod(params Type[] typeArguments)
{
return (MethodInfo)method.MakeGenericMethod(typeArguments).SetReflectedType(reflectedType);
return SetReflectedType(method.MakeGenericMethod(typeArguments), reflectedType);
}
public override MethodInfo GetGenericMethodDefinition()
{
return (MethodInfo)method.GetGenericMethodDefinition().SetReflectedType(reflectedType);
return method.GetGenericMethodDefinition();
}
public override string ToString()