|
|
@@ -12,7 +12,7 @@ using System;
|
|
|
using System.Globalization;
|
|
|
using System.Runtime.CompilerServices;
|
|
|
using System.Runtime.InteropServices;
|
|
|
-using System.Runtime.Serialization;
|
|
|
+using System.Runtime.Serialization;
|
|
|
|
|
|
namespace System.Reflection {
|
|
|
|
|
|
@@ -22,6 +22,7 @@ namespace System.Reflection {
|
|
|
internal Type ret;
|
|
|
internal MethodAttributes attrs;
|
|
|
internal MethodImplAttributes iattrs;
|
|
|
+ internal CallingConventions callconv;
|
|
|
|
|
|
[MethodImplAttribute(MethodImplOptions.InternalCall)]
|
|
|
internal static extern void get_method_info (IntPtr handle, out MonoMethodInfo info);
|
|
|
@@ -104,6 +105,14 @@ namespace System.Reflection {
|
|
|
return info.attrs;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public override CallingConventions CallingConvention {
|
|
|
+ get {
|
|
|
+ MonoMethodInfo info;
|
|
|
+ MonoMethodInfo.get_method_info (mhandle, out info);
|
|
|
+ return info.callconv;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
public override Type ReflectedType {
|
|
|
get {
|
|
|
@@ -216,6 +225,14 @@ namespace System.Reflection {
|
|
|
return info.attrs;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public override CallingConventions CallingConvention {
|
|
|
+ get {
|
|
|
+ MonoMethodInfo info;
|
|
|
+ MonoMethodInfo.get_method_info (mhandle, out info);
|
|
|
+ return info.callconv;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
public override Type ReflectedType {
|
|
|
get {
|