When storing Method Info data, from a Reflection read of a set of .NET assemblies, what would be the best logical key to use from the Method Info instance, to separate it from like name Methods in different Types, or like name Methods in the same type with different parameters?
For example, a Type has the AssemblyQualifiedName property to nicely identify it from similar Types.
UPDATE: As suggested by Peter Ritchie, there is the .NET Reflection MetadataToken property, which is exactly what I was hoping for, however, according to here, this token is not maintained over subsequent compiles.
The answer appears to be, as Oded suggested, a concatenated key of: "The fully qualified name of the containing type + its name and parameters"
I am happy to hear any further suggestions
MethodInfo.MetadataToken
uniquely identifies an element within a module. If that's not sufficient, maybe you can detail some of your requirements so that someone can offer an answer that can potentially be correct? – Peter Ritchie Feb 14 '13 at 19:52