зеркало из https://github.com/mono/ikvm-fork.git
Added MethodBase.__MethodRVA property.
This commit is contained in:
Родитель
483932899e
Коммит
1b22c03574
|
@ -53,6 +53,11 @@ namespace IKVM.Reflection
|
|||
get { return MemberTypes.Constructor; }
|
||||
}
|
||||
|
||||
public sealed override int __MethodRVA
|
||||
{
|
||||
get { return GetMethodInfo().__MethodRVA; }
|
||||
}
|
||||
|
||||
public override bool ContainsGenericParameters
|
||||
{
|
||||
get { return GetMethodInfo().ContainsGenericParameters; }
|
||||
|
|
|
@ -588,6 +588,11 @@ namespace IKVM.Reflection.Emit
|
|||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
public override int __MethodRVA
|
||||
{
|
||||
get { throw new NotImplementedException(); }
|
||||
}
|
||||
|
||||
public bool InitLocals
|
||||
{
|
||||
get { return initLocals; }
|
||||
|
|
|
@ -1597,6 +1597,11 @@ namespace IKVM.Reflection.Emit
|
|||
throw new InvalidOperationException();
|
||||
}
|
||||
|
||||
public override int __MethodRVA
|
||||
{
|
||||
get { throw new InvalidOperationException(); }
|
||||
}
|
||||
|
||||
public override MethodImplAttributes GetMethodImplementationFlags()
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
|
|
|
@ -128,6 +128,11 @@ namespace IKVM.Reflection
|
|||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
public override int __MethodRVA
|
||||
{
|
||||
get { return method.__MethodRVA; }
|
||||
}
|
||||
|
||||
public override MethodInfo MakeGenericMethod(params Type[] typeArguments)
|
||||
{
|
||||
return new GenericMethodInstance(declaringType, method, typeArguments);
|
||||
|
|
|
@ -39,6 +39,7 @@ namespace IKVM.Reflection
|
|||
public abstract MethodImplAttributes GetMethodImplementationFlags();
|
||||
public abstract MethodBody GetMethodBody();
|
||||
public abstract CallingConventions CallingConvention { get; }
|
||||
public abstract int __MethodRVA { get; }
|
||||
|
||||
public bool IsConstructor
|
||||
{
|
||||
|
|
|
@ -752,6 +752,11 @@ namespace IKVM.Reflection
|
|||
return Forwarder.GetMethodBody();
|
||||
}
|
||||
|
||||
public override int __MethodRVA
|
||||
{
|
||||
get { return Forwarder.__MethodRVA; }
|
||||
}
|
||||
|
||||
public override CallingConventions CallingConvention
|
||||
{
|
||||
get { return signature.CallingConvention; }
|
||||
|
|
|
@ -61,6 +61,11 @@ namespace IKVM.Reflection.Reader
|
|||
return rva == 0 ? null : new MethodBody(module, rva, context);
|
||||
}
|
||||
|
||||
public override int __MethodRVA
|
||||
{
|
||||
get { return module.MethodDef.records[index].RVA; }
|
||||
}
|
||||
|
||||
public override CallingConventions CallingConvention
|
||||
{
|
||||
get { return this.MethodSignature.CallingConvention; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче