Unable to look up MethodDefinition for constructed generic method
masonwheeler opened this issue · comments
In Lokad.ILPack.Metadata.AssemblyMetadata.TryGetMethodDefinition
, if passed a MethodInfo
representing a constructed generic method on a non-generic type, the following sequence occurs.
if (methodInfo.DeclaringType.IsConstructedGenericType)
is false. The type is not generic._methodDefHandles.TryGetValue(methodInfo, out metadata)
returns false, because the cache contains the generic method definition
(A similar problem exists on TryGetFieldDefinition
for fields on constructed generic types.)