diff options
author | jfrijters <jfrijters> | 2011-03-10 13:49:17 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-03-10 13:49:17 +0300 |
commit | d96b17bf88d64abddb22265623d9ba5d6dd618b4 (patch) | |
tree | 10c600cc6040dfbf8aa03c44c606b997227749ca /reflect | |
parent | 44f03cdd960a46d1f6009e22fbc35333969f92f1 (diff) |
Added API extension to expose property calling convention.
Diffstat (limited to 'reflect')
-rw-r--r-- | reflect/PropertyInfo.cs | 5 | ||||
-rw-r--r-- | reflect/PropertySignature.cs | 5 |
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(); |