diff options
author | Artur Zgodziński <bivaro@gmail.com> | 2011-04-20 02:30:07 +0400 |
---|---|---|
committer | Artur Zgodziński <bivaro@gmail.com> | 2011-04-20 02:30:07 +0400 |
commit | eea33b830d6cc4a9423ef5056d68b2a616593a06 (patch) | |
tree | 9b897376994694d9c35f41c968a6fc6c7bf45f52 /Mono.Cecil | |
parent | f5c964276099fd4896ebb51294e6703a3bc6acbd (diff) |
Fixed resolving references to generic methods.
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; |