If I remember correctly, the TypeReference has a scope that is an AssemblyReference (or a ModuleReference?). Use the current assembly's resolver to get the assembly containing the TypeDefinition you are looking for and then access that assembly's MainModule.Types with the FullName to get the TypeDefinition. A lot faster than searching all modules and comparing FullNames.
(I hope I remembered that correctly. If not, it should be similar :-) Simon On 28 Jan., 08:29, Kevin <[email protected]> wrote: > Hello, I was wondering if there was a quick/easy way to convert a > TypeReference into a TypeDefinition besides looping through all of the > Assemblies and Types and comparing their FullNames > > Thanks > Kevin --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
