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/GenericWrappers.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/GenericWrappers.cs')
-rw-r--r-- | reflect/GenericWrappers.cs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/reflect/GenericWrappers.cs b/reflect/GenericWrappers.cs index 1a3698c9..4f4d784e 100644 --- a/reflect/GenericWrappers.cs +++ b/reflect/GenericWrappers.cs @@ -395,18 +395,9 @@ namespace IKVM.Reflection get { return parameterInfo.RawDefaultValue; } } - public override Type[] GetOptionalCustomModifiers() + public override CustomModifiers __GetCustomModifiers() { - Type[] modifiers = parameterInfo.GetOptionalCustomModifiers(); - Type.InplaceBindTypeParameters(method, modifiers); - return modifiers; - } - - public override Type[] GetRequiredCustomModifiers() - { - Type[] modifiers = parameterInfo.GetRequiredCustomModifiers(); - Type.InplaceBindTypeParameters(method, modifiers); - return modifiers; + return parameterInfo.__GetCustomModifiers().Bind(method); } public override MemberInfo Member |