diff options
author | jbevain <jbevain@gmail.com> | 2010-07-28 18:33:43 +0400 |
---|---|---|
committer | jbevain <jbevain@gmail.com> | 2010-07-28 18:33:43 +0400 |
commit | 2ae88638ee5777bb6e85f6b32220309954880303 (patch) | |
tree | 2f2f3e1582cd9fa816a2b6a7dfffbe5ff11addc1 /Mono.Cecil/Modifiers.cs | |
parent | 6cc2e551ca205b7e89e3a024c4536abdf4de68e2 (diff) |
fix contains generic parameters for specifications
Diffstat (limited to 'Mono.Cecil/Modifiers.cs')
-rw-r--r-- | Mono.Cecil/Modifiers.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Mono.Cecil/Modifiers.cs b/Mono.Cecil/Modifiers.cs index d078cca..f7ff611 100644 --- a/Mono.Cecil/Modifiers.cs +++ b/Mono.Cecil/Modifiers.cs @@ -67,6 +67,10 @@ namespace Mono.Cecil { get { return true; } } + internal override bool ContainsGenericParameter { + get { return modifier_type.ContainsGenericParameter || base.ContainsGenericParameter; } + } + public OptionalModifierType (TypeReference modifierType, TypeReference type) : base (type) { @@ -106,6 +110,10 @@ namespace Mono.Cecil { get { return true; } } + internal override bool ContainsGenericParameter { + get { return modifier_type.ContainsGenericParameter || base.ContainsGenericParameter; } + } + public RequiredModifierType (TypeReference modifierType, TypeReference type) : base (type) { |