diff options
author | jfrijters <jfrijters> | 2011-12-01 10:30:50 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-12-01 10:30:50 +0400 |
commit | 3c49c20346609d4c397dff93d25bb68297301516 (patch) | |
tree | 926cbcef8a32139fb0cbaa3ad15e9690351a1379 /reflect/PropertyInfo.cs | |
parent | ed23e4ca4ec0e5fc797e47e7dea004941e02e853 (diff) |
- Rewrote custom modifier handling to retain ordering.
- Added ConstructorInfo.__ReturnParameter to expose custom modifiers.
- Added __GetCustomModifiers() to various *Info types.
- Added CustomModifiers type to encapsulate a custom modifier sequence.
- Added CustomModifiersBuilder to create a CustomModifiers sequence.
- Marked a number of IKVM.Reflection specific methods Obsolete, because they are replaced with method that take CustomModifiers value(s).
Diffstat (limited to 'reflect/PropertyInfo.cs')
-rw-r--r-- | reflect/PropertyInfo.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/reflect/PropertyInfo.cs b/reflect/PropertyInfo.cs index 91a71c27..1644aaaa 100644 --- a/reflect/PropertyInfo.cs +++ b/reflect/PropertyInfo.cs @@ -84,14 +84,9 @@ namespace IKVM.Reflection get { throw new InvalidOperationException(); } } - public override Type[] GetOptionalCustomModifiers() + public override CustomModifiers __GetCustomModifiers() { - return property.PropertySignature.GetOptionalCustomModifiers(parameter); - } - - public override Type[] GetRequiredCustomModifiers() - { - return property.PropertySignature.GetRequiredCustomModifiers(parameter); + return property.PropertySignature.GetParameterCustomModifiers(parameter); } public override MemberInfo Member @@ -125,14 +120,19 @@ namespace IKVM.Reflection get { return this.PropertySignature.PropertyType; } } + public CustomModifiers __GetCustomModifiers() + { + return this.PropertySignature.GetCustomModifiers(); + } + public Type[] GetRequiredCustomModifiers() { - return this.PropertySignature.GetRequiredCustomModifiers(); + return __GetCustomModifiers().GetRequired(); } public Type[] GetOptionalCustomModifiers() { - return this.PropertySignature.GetOptionalCustomModifiers(); + return __GetCustomModifiers().GetOptional(); } public bool IsSpecialName |