Added TypeBuilder.__SetAttributes() and MethodBuilder.__SetAttributes() to allow modying the attributes after the builder has been created.

This commit is contained in:
jfrijters 2010-05-07 07:21:29 +00:00
Родитель f6717df18f
Коммит ae03b8de03
2 изменённых файлов: 10 добавлений и 0 удалений

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

@ -370,6 +370,11 @@ namespace IKVM.Reflection.Emit
get { return attributes; }
}
public void __SetAttributes(MethodAttributes attributes)
{
this.attributes = attributes;
}
public override MethodImplAttributes GetMethodImplementationFlags()
{
return implFlags;

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

@ -745,6 +745,11 @@ namespace IKVM.Reflection.Emit
get { return attribs; }
}
public void __SetAttributes(TypeAttributes attributes)
{
this.attribs = attributes;
}
public override Type[] __GetDeclaredInterfaces()
{
return Util.ToArray(interfaces, Type.EmptyTypes);