diff options
author | jfrijters <jfrijters> | 2010-01-27 09:12:36 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2010-01-27 09:12:36 +0300 |
commit | 0050b15595dd056cf722f63dcb54a4af10151f70 (patch) | |
tree | 8d87766b16cb27319a8bdde91541e5dd6fcf19ea /reflect/PropertyInfo.cs | |
parent | dbd6df02ae2ccf6c4b8941e2b3086c1c461d0764 (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.cs | 5 |
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); + } } } |