Special case MethodImplAttribute to allow it to be used as an annotation.

This commit is contained in:
jfrijters 2010-10-21 10:58:14 +00:00
Родитель 407ba98287
Коммит 60fdbaf04d
1 изменённых файлов: 15 добавлений и 0 удалений

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

@ -748,6 +748,21 @@ namespace IKVM.Internal
}
}
}
if (type.Assembly == Types.Object.Assembly)
{
if (type.FullName == "System.Runtime.CompilerServices.MethodImplAttribute")
{
foreach (ConstructorInfo ci in constructors)
{
ParameterInfo[] p = ci.GetParameters();
if (p.Length == 1 && p[0].ParameterType.IsEnum)
{
singleOneArgCtor = ci;
return;
}
}
}
}
foreach (ConstructorInfo ci in constructors)
{
ParameterInfo[] args = ci.GetParameters();