Added MethodBase.__MethodRVA property.

This commit is contained in:
jfrijters 2012-01-12 06:51:17 +00:00
Родитель 483932899e
Коммит 1b22c03574
7 изменённых файлов: 31 добавлений и 0 удалений

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

@ -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; }