Posted December 31, 200816 yr How do you do something likeModuleHandle.ResolveMethodHandle(token);in cecil?Assembly.MainModule.MemberReferences doesn't contain all the references.Only way I can think is by loading each referenced assembly and check it. Would be very very slow though... (also locating the assemblies...)
January 5, 200916 yr Author I think I might have a cheat way. Load the assembly with System.Reflection and use it to resolve the metadatatoken. Then with the MethodInfo it returns resolve it with cecil.I might look more into Assembly.MainModule.LookupByToken to see if I can add member support.
Create an account or sign in to comment