This is a follow-up question to THIS one:
To analyze an assembly (or the types it ueses) I would like to read the TypeRef table of such assembly.
TypeRef
I
Using Cecil, it's just a matter of accessing ModuleDefinition.GetTypeReferences(). For example:
ModuleDefinition.GetTypeReferences()
var assembly = AssemblyDefinition.ReadAssembly(assemblyPath); var typeReferences = assembly.MainModule.GetTypeReferences();