Forward GetConstructorToken() to GetMethodToken() instead of duplicating the code.

This commit is contained in:
jfrijters 2012-06-26 12:55:35 +00:00
Родитель 1ace5e2c68
Коммит c1e9f015f8
1 изменённых файлов: 1 добавлений и 8 удалений

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

@ -628,14 +628,7 @@ namespace IKVM.Reflection.Emit
public MethodToken GetConstructorToken(ConstructorInfo constructor)
{
if (constructor.Module == this && constructor.GetMethodInfo() is MethodBuilder)
{
return new MethodToken(constructor.MetadataToken);
}
else
{
return new MethodToken(ImportMember(constructor));
}
return GetMethodToken(constructor.GetMethodInfo());
}
// new in .NET 4.5