diff options
author | jbevain <jbevain@gmail.com> | 2011-04-24 17:36:59 +0400 |
---|---|---|
committer | jbevain <jbevain@gmail.com> | 2011-04-24 17:36:59 +0400 |
commit | 3df5b89e87491fc6c072b1236d31afc58075c7c6 (patch) | |
tree | dc7f3dc33dff02cf4327d8476dc6d2a872d2a842 /Mono.Cecil | |
parent | 5df2a203735917142cccb8bb80f9f8703dd9a0e2 (diff) | |
parent | eea33b830d6cc4a9423ef5056d68b2a616593a06 (diff) |
Merge remote-tracking branch 'arturek/GenericMethodResolvingFix'
Diffstat (limited to 'Mono.Cecil')
-rw-r--r-- | Mono.Cecil/MetadataResolver.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mono.Cecil/MetadataResolver.cs b/Mono.Cecil/MetadataResolver.cs index 77d418d..0b912e3 100644 --- a/Mono.Cecil/MetadataResolver.cs +++ b/Mono.Cecil/MetadataResolver.cs @@ -206,6 +206,12 @@ namespace Mono.Cecil { if (method.Name != reference.Name) continue; + if (method.HasGenericParameters != reference.HasGenericParameters) + continue; + + if (method.HasGenericParameters && method.GenericParameters.Count != reference.GenericParameters.Count) + continue; + if (!AreSame (method.ReturnType, reference.ReturnType)) continue; |