зеркало из https://github.com/mono/ikvm-fork.git
Forward GetConstructorToken() to GetMethodToken() instead of duplicating the code.
This commit is contained in:
Родитель
1ace5e2c68
Коммит
c1e9f015f8
|
@ -628,14 +628,7 @@ namespace IKVM.Reflection.Emit
|
||||||
|
|
||||||
public MethodToken GetConstructorToken(ConstructorInfo constructor)
|
public MethodToken GetConstructorToken(ConstructorInfo constructor)
|
||||||
{
|
{
|
||||||
if (constructor.Module == this && constructor.GetMethodInfo() is MethodBuilder)
|
return GetMethodToken(constructor.GetMethodInfo());
|
||||||
{
|
|
||||||
return new MethodToken(constructor.MetadataToken);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return new MethodToken(ImportMember(constructor));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// new in .NET 4.5
|
// new in .NET 4.5
|
||||||
|
|
Загрузка…
Ссылка в новой задаче