scripts
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Reflection.Emit;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
// Token: 0x02000259 RID: 601
|
||||
internal struct MonoMethodInfo
|
||||
{
|
||||
// Token: 0x06001F33 RID: 7987
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void get_method_info(IntPtr handle, out MonoMethodInfo info);
|
||||
|
||||
// Token: 0x06001F34 RID: 7988 RVA: 0x00072E80 File Offset: 0x00071080
|
||||
internal static MonoMethodInfo GetMethodInfo(IntPtr handle)
|
||||
{
|
||||
MonoMethodInfo monoMethodInfo;
|
||||
MonoMethodInfo.get_method_info(handle, out monoMethodInfo);
|
||||
return monoMethodInfo;
|
||||
}
|
||||
|
||||
// Token: 0x06001F35 RID: 7989 RVA: 0x00072E98 File Offset: 0x00071098
|
||||
internal static Type GetDeclaringType(IntPtr handle)
|
||||
{
|
||||
return MonoMethodInfo.GetMethodInfo(handle).parent;
|
||||
}
|
||||
|
||||
// Token: 0x06001F36 RID: 7990 RVA: 0x00072EB4 File Offset: 0x000710B4
|
||||
internal static Type GetReturnType(IntPtr handle)
|
||||
{
|
||||
return MonoMethodInfo.GetMethodInfo(handle).ret;
|
||||
}
|
||||
|
||||
// Token: 0x06001F37 RID: 7991 RVA: 0x00072ED0 File Offset: 0x000710D0
|
||||
internal static MethodAttributes GetAttributes(IntPtr handle)
|
||||
{
|
||||
return MonoMethodInfo.GetMethodInfo(handle).attrs;
|
||||
}
|
||||
|
||||
// Token: 0x06001F38 RID: 7992 RVA: 0x00072EEC File Offset: 0x000710EC
|
||||
internal static CallingConventions GetCallingConvention(IntPtr handle)
|
||||
{
|
||||
return MonoMethodInfo.GetMethodInfo(handle).callconv;
|
||||
}
|
||||
|
||||
// Token: 0x06001F39 RID: 7993 RVA: 0x00072F08 File Offset: 0x00071108
|
||||
internal static MethodImplAttributes GetMethodImplementationFlags(IntPtr handle)
|
||||
{
|
||||
return MonoMethodInfo.GetMethodInfo(handle).iattrs;
|
||||
}
|
||||
|
||||
// Token: 0x06001F3A RID: 7994
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern ParameterInfo[] get_parameter_info(IntPtr handle, MemberInfo member);
|
||||
|
||||
// Token: 0x06001F3B RID: 7995 RVA: 0x00072F24 File Offset: 0x00071124
|
||||
internal static ParameterInfo[] GetParametersInfo(IntPtr handle, MemberInfo member)
|
||||
{
|
||||
return MonoMethodInfo.get_parameter_info(handle, member);
|
||||
}
|
||||
|
||||
// Token: 0x06001F3C RID: 7996
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern UnmanagedMarshal get_retval_marshal(IntPtr handle);
|
||||
|
||||
// Token: 0x06001F3D RID: 7997 RVA: 0x00072F30 File Offset: 0x00071130
|
||||
internal static ParameterInfo GetReturnParameterInfo(MonoMethod method)
|
||||
{
|
||||
return new ParameterInfo(MonoMethodInfo.GetReturnType(method.mhandle), method, MonoMethodInfo.get_retval_marshal(method.mhandle));
|
||||
}
|
||||
|
||||
// Token: 0x04000AC9 RID: 2761
|
||||
private Type parent;
|
||||
|
||||
// Token: 0x04000ACA RID: 2762
|
||||
private Type ret;
|
||||
|
||||
// Token: 0x04000ACB RID: 2763
|
||||
internal MethodAttributes attrs;
|
||||
|
||||
// Token: 0x04000ACC RID: 2764
|
||||
internal MethodImplAttributes iattrs;
|
||||
|
||||
// Token: 0x04000ACD RID: 2765
|
||||
private CallingConventions callconv;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user