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>2010-01-27 09:12:36 +0300
committerjfrijters <jfrijters>2010-01-27 09:12:36 +0300
commit0050b15595dd056cf722f63dcb54a4af10151f70 (patch)
tree8d87766b16cb27319a8bdde91541e5dd6fcf19ea /reflect/PropertyInfo.cs
parentdbd6df02ae2ccf6c4b8941e2b3086c1c461d0764 (diff)
Several IKVM.Reflection fixes related to generics.
- MethodImpls in generic type definitions should be resolved with typeArgs as context. - Cleaned up member on generic type rebinding. - Fixed __GetDeclaredProperties and __GetDeclaredEvents to rebind properly.
Diffstat (limited to 'reflect/PropertyInfo.cs')
-rw-r--r--reflect/PropertyInfo.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/reflect/PropertyInfo.cs b/reflect/PropertyInfo.cs
index 2c0b4ea6..44eb324b 100644
--- a/reflect/PropertyInfo.cs
+++ b/reflect/PropertyInfo.cs
@@ -155,5 +155,10 @@ namespace IKVM.Reflection
{
get { return !this.PropertySignature.HasThis; }
}
+
+ internal virtual PropertyInfo BindTypeParameters(Type type)
+ {
+ return new GenericPropertyInfo(this.DeclaringType.BindTypeParameters(type), this);
+ }
}
}