зеркало из https://github.com/mono/ikvm-fork.git
Added TypeBuilder.__SetAttributes() and MethodBuilder.__SetAttributes() to allow modying the attributes after the builder has been created.
This commit is contained in:
Родитель
f6717df18f
Коммит
ae03b8de03
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче