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-10 13:49:17 +0300
committerjfrijters <jfrijters>2011-03-10 13:49:17 +0300
commitd96b17bf88d64abddb22265623d9ba5d6dd618b4 (patch)
tree10c600cc6040dfbf8aa03c44c606b997227749ca /reflect
parent44f03cdd960a46d1f6009e22fbc35333969f92f1 (diff)
Added API extension to expose property calling convention.
Diffstat (limited to 'reflect')
-rw-r--r--reflect/PropertyInfo.cs5
-rw-r--r--reflect/PropertySignature.cs5
2 files changed, 10 insertions, 0 deletions
diff --git a/reflect/PropertyInfo.cs b/reflect/PropertyInfo.cs
index 722921fa..869ef5f6 100644
--- a/reflect/PropertyInfo.cs
+++ b/reflect/PropertyInfo.cs
@@ -155,6 +155,11 @@ namespace IKVM.Reflection
return GetAccessors(false);
}
+ public CallingConventions __CallingConvention
+ {
+ get { return this.PropertySignature.CallingConvention; }
+ }
+
internal virtual PropertyInfo BindTypeParameters(Type type)
{
return new GenericPropertyInfo(this.DeclaringType.BindTypeParameters(type), this);
diff --git a/reflect/PropertySignature.cs b/reflect/PropertySignature.cs
index 4e19dca6..de342dec 100644
--- a/reflect/PropertySignature.cs
+++ b/reflect/PropertySignature.cs
@@ -170,6 +170,11 @@ namespace IKVM.Reflection
return parameterRequiredCustomModifiers == null ? Type.EmptyTypes : parameterRequiredCustomModifiers[parameter];
}
+ internal CallingConventions CallingConvention
+ {
+ get { return callingConvention; }
+ }
+
internal static PropertySignature ReadSig(ModuleReader module, ByteReader br, IGenericContext context)
{
byte flags = br.ReadByte();