Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2011-03-11 18:50:55 +0300
committerjfrijters <jfrijters>2011-03-11 18:50:55 +0300
commit3ed1a8c47582da9ced26f5cdfe9fd53ace9e68eb (patch)
tree0253768722bfdf3111de3a20bb3007af385402a5 /reflect
parent31f752b003187987db76c29918410a955b004478 (diff)
Added API extension to set the calling convention (without it being meddled with).
Diffstat (limited to 'reflect')
-rw-r--r--reflect/Emit/MethodBuilder.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/reflect/Emit/MethodBuilder.cs b/reflect/Emit/MethodBuilder.cs
index 1ebd64e1..12281a95 100644
--- a/reflect/Emit/MethodBuilder.cs
+++ b/reflect/Emit/MethodBuilder.cs
@@ -47,7 +47,7 @@ namespace IKVM.Reflection.Emit
private MethodImplAttributes implFlags;
private ILGenerator ilgen;
private int rva = -1;
- private readonly CallingConventions callingConvention;
+ private CallingConventions callingConvention;
private List<ParameterBuilder> parameters;
private GenericTypeParameterBuilder[] gtpb;
private List<CustomAttributeBuilder> declarativeSecurity;
@@ -404,6 +404,11 @@ namespace IKVM.Reflection.Emit
this.attributes = attributes;
}
+ public void __SetCallingConvention(CallingConventions callingConvention)
+ {
+ this.callingConvention = callingConvention;
+ }
+
public override MethodImplAttributes GetMethodImplementationFlags()
{
return implFlags;